Skip to content

Commit 79605f0

Browse files
authored
Merge pull request #473 from Stellar-xcrow/fix/frontend-error-codes
fix: add 500 and 503 error messages to frontend error-handler
2 parents 2f495b0 + cc3b589 commit 79605f0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

frontend/error-handler.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const ERROR_MESSAGES = {
2828
403: 'You do not have permission to do that.',
2929
404: 'The requested resource was not found.',
3030
429: 'Too many requests. Please wait a moment and try again.',
31+
500: 'A server error occurred. Our team has been notified.',
32+
503: 'Service temporarily unavailable. Please try again shortly.',
3133
500: 'Server error. Our team has been notified.',
3234
503: 'Service unavailable. You may be offline.',
3335
// Named codes from API

0 commit comments

Comments
 (0)