{"_id":"565f80a2813aeb0d007b7592","githubsync":"","__v":2,"version":{"_id":"55de36ec9067202b00de0015","__v":33,"project":"55dd0853d2d97337001800e2","createdAt":"2015-08-26T22:00:12.384Z","releaseDate":"2015-08-26T22:00:12.383Z","categories":["55de36ed9067202b00de0016","55de36ed9067202b00de0017","55de36ed9067202b00de0018","55df7dcd437b3f0d004ba204","55e4e014177b6e0d00333141","55e4e01fe252ac0d00303a99","55e4e05240cda60d003bad67","55e4e070177b6e0d00333142","55e4e0753325e60d007fbee6","55e4e0803325e60d007fbee7","55e4e086177b6e0d00333143","55e4e0a1177b6e0d00333144","55e4e0aa3325e60d007fbee8","55e4e0b140cda60d003bad6b","55e4e0bae252ac0d00303a9d","55e4e0c5177b6e0d00333145","55e4e0ee3325e60d007fbeea","55e4e0fae252ac0d00303a9e","55e4e100177b6e0d00333147","55f85c8ba3271b0d00498d55","56092e1ac5cff70d007d0131","564b64a3ee12850d0095866e","564b64b5791099170071e9ea","565cd0bfd18ae50d007183d8","565f5f5d6bafd40d0030a063","565f790d6bafd40d0030a09f","56611c464851190d003f9f5d","56637d5b7988ab0d00d0522e","56637d687988ab0d00d0522f","567835df6928b40d009dd650","56e59c043c29b117008dae5b","5704013559c5190e000ab646","572be252de40590e00026934","58af1bf6ebd7370f0078ba09","5cdad81d912ece0039e9a939"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3.0"},"parentDoc":null,"project":"55dd0853d2d97337001800e2","category":{"_id":"565f790d6bafd40d0030a09f","version":"55de36ec9067202b00de0015","__v":5,"pages":["565f79846c2a8d0d00276553","565f7a2a813aeb0d007b7588","565f80a2813aeb0d007b7592","565f80f4bca87d0d006bc759","565f812413f6680d0022df2e"],"project":"55dd0853d2d97337001800e2","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-12-02T23:04:45.791Z","from_sync":false,"order":9,"slug":"errors","title":"Errors"},"user":"55dd080d0efd5821000d53b3","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-12-02T23:37:06.350Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"The Error response uses HTTP Status Codes 2xx, 4xx, and 5xx.\n\nWhen the request cannot be understood, due to a possibly malformed request, HTTP Status Code 400 is usually returned.\n\nWhen the request is well-formed but contains validation errors, HTTP Status Code 422 is usually returned. \n\nWhen a request passes validation but otherwise fails for other reasons (card declined for example), HTTP Status Code 402 is usually returned.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Status Code\",\n    \"h-1\": \"Status Name\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"200\",\n    \"1-0\": \"204\",\n    \"2-0\": \"400\",\n    \"3-0\": \"401\",\n    \"4-0\": \"402\",\n    \"5-0\": \"404\",\n    \"6-0\": \"422\",\n    \"7-0\": \"429\",\n    \"8-0\": \"500\",\n    \"9-0\": \"503\",\n    \"0-1\": \"Success\",\n    \"1-1\": \"No Content\",\n    \"2-1\": \"Bad Request\",\n    \"3-1\": \"Unauthorized\",\n    \"4-1\": \"Request Failed\",\n    \"5-1\": \"Not Found\",\n    \"6-1\": \"Unprocessable Entity\",\n    \"7-1\": \"Too Many Requests\",\n    \"8-1\": \"Internal Server Error\",\n    \"9-1\": \"Service Unavailable\",\n    \"0-2\": \"The request was successful.\",\n    \"1-2\": \"Empty response.\",\n    \"2-2\": \"The request failed, possibly due to a malformed request.\",\n    \"3-2\": \"Access to the resource is denied\",\n    \"4-2\": \"The request was not successful despite being a valid request.\",\n    \"5-2\": \"The resource was not found\",\n    \"6-2\": \"The request failed, possibly due to validation problems.\",\n    \"7-2\": \"You have performed too many requests\",\n    \"8-2\": \"Something went wrong on the PayStand end.\",\n    \"9-2\": \"The API is currently not available.\"\n  },\n  \"cols\": 3,\n  \"rows\": 10\n}\n[/block]","excerpt":"","slug":"http-status-codes","type":"basic","title":"Error HTTP status codes"}

Error HTTP status codes


The Error response uses HTTP Status Codes 2xx, 4xx, and 5xx. When the request cannot be understood, due to a possibly malformed request, HTTP Status Code 400 is usually returned. When the request is well-formed but contains validation errors, HTTP Status Code 422 is usually returned. When a request passes validation but otherwise fails for other reasons (card declined for example), HTTP Status Code 402 is usually returned. [block:parameters] { "data": { "h-0": "Status Code", "h-1": "Status Name", "h-2": "Description", "0-0": "200", "1-0": "204", "2-0": "400", "3-0": "401", "4-0": "402", "5-0": "404", "6-0": "422", "7-0": "429", "8-0": "500", "9-0": "503", "0-1": "Success", "1-1": "No Content", "2-1": "Bad Request", "3-1": "Unauthorized", "4-1": "Request Failed", "5-1": "Not Found", "6-1": "Unprocessable Entity", "7-1": "Too Many Requests", "8-1": "Internal Server Error", "9-1": "Service Unavailable", "0-2": "The request was successful.", "1-2": "Empty response.", "2-2": "The request failed, possibly due to a malformed request.", "3-2": "Access to the resource is denied", "4-2": "The request was not successful despite being a valid request.", "5-2": "The resource was not found", "6-2": "The request failed, possibly due to validation problems.", "7-2": "You have performed too many requests", "8-2": "Something went wrong on the PayStand end.", "9-2": "The API is currently not available." }, "cols": 3, "rows": 10 } [/block]