OCLC Developer Network

HTTP Response Codes

CodeExplanation
200 OKNo Error.
201 CreatedCreation of the resource was successful.
204 No ContentNo error. Used when the server does not need to return any information in the response entity. Metadata about the request maybe returned in response headers.
304 Not ModifiedThe resource hasn't changed since the client's last read. This could be driven off If-Modified-Since header or Etag. Assuming each entry has an updated date, If-Modified-Since probably makes more sense.
400 Bad RequestReturned under the following conditions:
  • Invalid request URI.
  • Invalid request header.
  • Receiving an unsupported non-standard parameter.
  • Invalid parameter values are also included.
401 UnauthorizedAuthorization required.
403 ForbiddenUnsupported standard parameter, or authentication or authorization failed.
404 Not FoundResource not found.
405 Method Not AllowedThe method specified in the request is not allowed for the resource.
409 ConflictThe request could not be completed due to a conflict with the current state of the resource. For example, a client attempts to update an old version of a resource.
410 GoneThe requested resource is no longer available at the server and no forwarding address is known. This condition is expected to be considered permanent.
412 Precondition FailedA precondition given in a request header evaluated to false. For example, a PUT request with a If-Unmodified-Since header might return a 412 if a resource was updated after the value of the If-Modified-Since header.
415 Unsupported Media TypeThe server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method.
500 Internal Server ErrorThe default status code used for all unrecognized server errors.
503 Service UnavailableThe server is currently unable to handle the request due to a temporary overloading or maintenance of the server.

 

Web services will include a descriptive message in the HTTP response entity when returning a HTTP 4xx and 5xx status code.

Follow the OCLC Developer Network:

The OCLC Developer Network supports the use of OCLC Web Services—a set of tools and APIs that expose data and services for WorldCat and our member libraries and partner institutions or companies. learn more »

© 2010 OCLC Domestic and international trademarks and/or service marks of OCLC Online Computer Library Center, Inc. and its affiliates


Powered by Drupal, an open source content management system