Skip to content

Commit

Permalink
errors jbuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Oct 12, 2023
1 parent 327a676 commit 24c8e33
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/errors/404.json.jbuilder
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
json.status 404
json.error "Not Found"
json.message "The resource you were looking for could not be found."
3 changes: 3 additions & 0 deletions app/views/errors/422.json.jbuilder
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
json.status 422
json.error "Unprocessable Entity"
json.message "The request was well-formed but was unable to be followed due to semantic errors."
3 changes: 3 additions & 0 deletions app/views/errors/500.json.jbuilder
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
json.status 500
json.error "Internal Server Error"
json.message "Something went wrong on our end. Please try again later."

0 comments on commit 24c8e33

Please sign in to comment.