In an ideal world, all of your programming calls will work perfectly. Unfortunately, we do not live in an ideal world, and occasionally you will need to deal with error messages. LucidWorks returns errors as JSON maps that provide all of the information you need to determine the problem. They are in the following format:
These values correspond to the following information:
http_status_name: The name of the status code.
http_status_code: The integer status code that classifies the error. These integer codes correspond to standard HTTP response codes. For example, if you reference an object that does not exist, the error code will be "404", the traditional "Not Found" response. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html.
errors: This object contains more detailed information on the reasons for the error status, including:
message: A human-readable error message explaining the problem.
key: The input key that the message pertains to. This may be an empty string if the error does not correspond to a submitted key.
Note that more than one error may be passed in an error response.