@Carsten
Error Codes
RESTlets support the following HTTP error codes:
302 Moved Temporarily: The request was sent to a different data center than the data center in which your company’s account resides. When you receive a 302 response, you must recalculate the signature on the request to the correct data center, because the signature is also computed from URL.
400 BAD_REQUEST: The RESTlet request failed with a user error.
401 UNAUTHORIZED: There is not a valid NetSuite login session for the RESTlet calls.
403 FORBIDDEN: RESTlet request sent to invalid domain, meaning a domain other than
https://rest.netsuite.com.
404 NOT_FOUND: A RESTlet script is not defined in the RESTlet request.
405 METHOD_NOT_ALLOWED: The RESTlet request method is not valid.
415 UNSUPPORTED_MEDIA_TYPE: An unsupported content type was specified. (Only JSON and text are allowed.)
500 INTERNAL_SERVER_ERROR (unexpected errors): Occurs for non-user errors that cannot be recovered by resubmitting the same request.
If this type of error occurs, contact Customer Support to file a case.
503 SERVICE_UNAVAILABLE: The NetSuite database is offline or a database connection is not available.