Skip to content

Latest commit

 

History

History
134 lines (94 loc) · 2.99 KB

failResponse.md

File metadata and controls

134 lines (94 loc) · 2.99 KB

Error response examples

Authentication required

401

HEADERS

HTTP/1.1 401 Unauthorized
Content-Type: application/json

BODY

{
  "message": "Full authentication is required to access this resource."
}

HTTP Forbidden

403

HEADERS

HTTP/1.1 403 HTTP Forbidden
Content-Type: application/json

BODY

{
  "message": "Access denied."
}

Requested resource not found

404

HEADERS

HTTP/1.1 404 Not Found
Content-Type: application/json

BODY

{
  "message": "Invoice not found"
}

Payment method not enabled

422

HEADERS

HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json

BODY

{
  "message": "Method must be enabled to use it"
}

Please contact Payop support if you want to enable additional payment methods.

Validation fails

422

HEADERS

HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json

BODY

{
  "message": {
    "email": [
      "This value should not be blank."
    ],
    "password": [
      "This value should not be blank."
    ]
  }
}

Server error

500

HEADERS

HTTP/1.1 500 Internal Server Error
Content-Type: application/json

BODY

{
  "message": "Something went wrong, try again or contact support."
}

Please contact Payop support if you face such cases.