Status codes

This is a list of Hypertext Transfer Protocol (HTTP) response status codes. Status codes are issued by a server in response to a client's request made to the server. All HTTP response status codes are separated into five classes. The first digit of the status-code defines the class of response, while the last two digits do not have any classifying or categorization role.

There are five classes defined by the standard:

  • 1xx informational response – the request was received, continuing process

  • 2xx successful – the request was successfully received and accepted

  • 3xx redirection – further action needs to be taken in order to complete the request

  • 4xx client error – the request contains bad syntax or cannot be fulfilled

  • 5xx server error – the server failed to fulfil an apparently valid request

The standard error response is provided in the below sample format:

{
"errors":
[
{
"status": "400",
"source": { "pointer": "/data/attributes/firstName" },
"title": "Bad Request",
"detail": "First name must contain at least three characters."
}
]
}

BankTech makes use of the following status codes:

StatusCode

Class

Description

200

Successful

Successful

202

Successful

Accepted for processing

400

Client error

Bad request

401

Client error

Unauthorised

402

Client error

Payment required

404

Client error

Not found

413

Client error

Payload too large

429

Client error

Too many requests

500

Server error

Internal server error

502

Server error

Bad gateway

503

Server error

Server not available

504

Server error

Gateway timeout