Code 4xx

List of Midtrans specific status codes starting with 4XX.

StatusDescription

400

Validation Error, merchant sends bad request data example; validation error, invalid transaction type, invalid credit card format, etc.

401

Access denied due to unauthorized transaction, please check client key or server key

402

Merchant doesn't have access for this payment type

403

The requested resource is only capable of generating content not acceptable according to the accepting headers that sent in the request

404

The requested resource is not found

405

HTTP method is not allowed

406

Duplicate order ID. Order ID has already been utilized previously

407

Expired transaction

408

Merchant sends the wrong data type

410

Merchant account is deactivated. Please contact Midtrans support

411

Token id is missing, invalid, or timed out

412

Merchant cannot modify status of the transaction

413

The request cannot be processed due to malformed syntax in the request body