<h2>REST API HTTP response codes</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="reference" /><meta name="DC.title" content="REST API HTTP response codes" /><meta name="abstract" content="REST Messages sent to an instance return a specific HTTP response code." /><meta name="description" content="REST Messages sent to an instance return a specific HTTP response code." /><meta name="DC.subject" content="Inbound REST, response codes, HTTP Response Codes" /><meta name="keywords" content="Inbound REST, response codes, HTTP Response Codes" /><meta name="DC.relation" scheme="URI" content="../../../integrate/inbound-rest/concept/c_RESTAPI.html" /><meta name="DC.relation" scheme="URI" content="../../../build/applications/concept/api-implementation-reference.html" /><meta name="DC.relation" scheme="URI" content="../../../build/applications/concept/api-implementation.html" /><meta name="DC.relation" scheme="URI" content="../../../integrate/web-services/reference/r_AvailableWebServices.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2024-07-22" /><meta name="page-type" content="platform" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="r_RESTAPIHTTPResponseCodes" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>REST API HTTP response codes</title></head><body id="r_RESTAPIHTTPResponseCodes"> <div class="breadcrumb"><a class="link" href="../../../build/applications/concept/api-implementation-reference.html" title="Get started using ServiceNow APIs with guides, resources, and reference documentation.">API implementation and reference</a> > <a class="link" href="../../../build/applications/concept/api-implementation.html" title="You can use JavaScript APIs to extend application server and client functionality. Use web services to connect ServiceNow applications to other software applications.">API implementation</a> > <a class="link" href="../../../integrate/web-services/reference/r_AvailableWebServices.html" title="HTTP-based web services allow diverse applications to talk to each other. ServiceNow supports both inbound (provider) and outbound (consumer) web services.">Web services</a> > </div> <h1 class="title topictitle1" id="ariaid-title1">REST API HTTP response codes</h1> <div class="body refbody"><p class="shortdesc">REST Messages sent to an instance return a specific HTTP response code.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="r_RESTAPIHTTPResponseCodes__table_RestResponseCodes" class="table" frame="border" border="1" rules="all"><colgroup><col /><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d1379327e64">Status Code</th><th class="entry cellrowborder" style="vertical-align:top;" id="d1379327e67">Message</th><th class="entry cellrowborder" style="vertical-align:top;" id="d1379327e70">Details</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e64 ">200</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e67 ">Success</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e70 ">Success with response body.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e64 ">201</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e67 ">Created</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e70 ">Success with response body.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e64 ">204</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e67 ">Success</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e70 ">Success with no response body.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e64 ">400</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e67 ">Bad Request</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e70 ">The request URI does not match the APIs in the system, or the operation failed for unknown reasons. Invalid headers can also cause this error.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e64 ">401</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e67 ">Unauthorized</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e70 ">The user is not authorized to use the API.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e64 ">403</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e67 ">Forbidden</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e70 ">The requested operation is not permitted for the user. This error can also be caused by ACL failures, or business rule or data policy constraints.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e64 ">404</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e67 ">Not found</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e70 ">The requested resource was not found. This can be caused by an ACL constraint or if the resource does not exist.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e64 ">405</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e67 ">Method not allowed</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e70 ">The HTTP action is not allowed for the requested REST API, or it is not supported by any API.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e64 ">406</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e67 ">Not acceptable</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e70 ">The endpoint does not support the response format specified in the request Accept header.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e64 ">415</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e67 ">Unsupported media type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e70 ">The endpoint does not support the format of the request body.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e64 ">500</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e67 ">Internal server error</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e70 ">An unexpected error occurred while processing the request. The response contains additional information about the error.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e64 ">502</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e67 ">Bad gateway</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e70 ">The server, while acting as a gateway or proxy, received an invalid response from the upstream server.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e64 ">503</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e67 ">Service unavailable</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1379327e70 ">The server is currently unable to handle the request.</td></tr></tbody></table> </div> </div> <div class="related-links"> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../integrate/inbound-rest/concept/c_RESTAPI.html" title="REST (REpresentational State Transfer) is a simple stateless architecture that provides standards between computer systems on the web, making it easier for them to communicate with each other.">REST APIs</a></div> </div> </div></body></html></div>