Error codes for REST API

The BMC Release Process Management REST API version 1 provides two levels of error messaging. It first cooperates with the server and browser layer and provides relevant HTTP status code headers for its return messages, especially in the case of failures. Following is a partial list of the possible HTTP status codes that are returned.

The REST API also returns application-specific error codes inside the error message body that have a five-digit code and text (to be internationalized).

HTTP status codes

The following HTTP status codes can be returned by the BMC Release Process Management REST API version 1 for generic, system, and communication errors and basic ok and not ok statuses of requests.

Status code

Status message

Symbol

2xx Success



200

OK

:ok

201

Created

:created

202

Accepted

:accepted

204

No Content

:no_content

3xx Redirection



301

Moved Permanently

:moved_permanently

302

Found

:found

303

See Other

:see_other

4xx Client Error



400

Bad Request

:bad_request

401

Unauthorized

:unauthorized

403

Forbidden

:forbidden

404

Not Found

:not_found

405

Method Not Allowed

:method_not_allowed

408

Request Timeout

:request_timeout

412

Precondition Failed

:precondition_failed

413

Request Entity Too Large

:request_entity_too_large

414

Request-URI Too Long

:request_uri_too_long

415

Unsupported Media Type

:unsupported_media_type

417

Expectation Failed

:expectation_failed

422

Unprocessable Entity

:unprocessable_entity

423

Locked

:locked

5xx Server Error



500

Internal Server Error

:internal_server_error

501

Not Implemented

:not_implemented

502

Bad Gateway

:bad_gateway

503

Service Unavailable

:service_unavailable

504

Gateway Timeout

:gateway_timeout

Was this page helpful? Yes No Submitting... Thank you

Comments