Skip to content

Latest commit

History

51 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

HTTP-code specific classes to format unified AJAX error response

For NodeJS, Typescript applications.

Return unified response on backend error.

HTTP code 400, 404, 5xx

Response:

{
"code": "NotFound",
"message": "Requested entity is not found"
}

HTTP code 422 request payload validation error

Response:

{
"code": "Validation",
"validationErrors": {
"field": ["Field is required", "Value must be integer"]
}
}

About

HTTP-code specific classes to format unified AJAX error response

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages