LNPay Docs
Search…
Error Handling
How to handle the errors
You can expect all errors to have the same JSON response structure. For example here is what a 404 will look like:
1
HTTP/1.1 404 Not Found
2
Content-Type: application/json
3
4
{
5
"name": "Not Found Exception",
6
"message": "The requested resource was not found.",
7
"code": 0,
8
"status": 404,
9
"type": "NotFoundException"
10
}
Copied!
A 500 error may look like this:
1
HTTP/1.1 500 Internal Server Error
2
Content-Type: application/json
3
4
{
5
"name": "Internal Server Error",
6
"message": "Something very bad happened",
7
"code": 0,
8
"status": 500,
9
"type": "InternalServerErrorException"
10
}
Copied!
Last modified 1yr ago
Copy link