Sometimes, when a fetch request fails, there will be error information in the reply from the server. Typically this only occurs if an API operation returns OC_EDAS, OC_EDDS, OC_EDATADDS, or OC_EDAPSVC. This procedure will attempt to locate and return information from such an error reply.
The error reply contains three pieces of information.
-
code - a string representing a numeric error code.
-
msg - a string representing an extended error message.
-
http - an integer representing an HTTP error return (e.g. 404).
- Parameters:
-
[in] | link | The link through which the server is accessed. |
[in] | codep | A pointer for returning the error code. |
[in] | msgp | A pointer for returning the error message. |
[in] | httpp | A pointer for returning the HTTP error number. |
- Return values:
-
OC_NOERR | if an error was found and the return values are defined. |
OtherError | if no error reply could be found, so the return values are meaningless. |
Definition at line 1486 of file oc.c.
References OCDEREF, and OCVERIFY.