Skip to content

Adds improved error handling for database operations#1

Open
gmbeard wants to merge 2 commits intomasterfrom
db-error-handling
Open

Adds improved error handling for database operations#1
gmbeard wants to merge 2 commits intomasterfrom
db-error-handling

Conversation

@gmbeard
Copy link
Copy Markdown
Owner

@gmbeard gmbeard commented May 4, 2020

The application will now detect when a client attempts to update or
delete a non-existent product, and return a 404 Not Found instead of
400 Bad Request.

Further checks had been put in place to detect database-specific errors
when adding, updating, and deleting products. These now translate into a
503 Service Unavailable response.

The README.md file has been updated to reflect this (along with some
other missing details)

gmbeard added 2 commits May 4, 2020 20:30
The application will now detect when a client attempts to update or
delete a non-existent product, and return a `404 Not Found` instead of
`400 Bad Request`.

Further checks had been put in place to detect database-specific errors
when adding, updating, and deleting products. These now translate into a
`503 Service Unavailable` response.

The `README.md` file has been updated to reflect this (along with some
other missing details)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant