CUDA Driver and PTX code

I tried to use cuModuleLoadDataEx() from the CUDA Driver API, passing a PTX code as a text string, but I obtained error 200 and 209.
I obtained the PTX kernel code by using the nvcc option -ptx and then I made a string from it that I passed to the
cuModuleLoadDataEx.
Anyone can tell me where I can find a list of errors from CUDA drivers, and how I can use the cuModuleLoadDataEx?

Thanks.

You can obtain error codes from <cuda.h>: