You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an effort to standardize our error reporting to the client, we should create a custom error handling middleware (see).
This would enable us to simply throw an exception when we want to report an error to the user instead of mucking about with a response factory. The exception we throw probably should contain a StatusCode and maybe some Header information as well to help customize the response.
The text was updated successfully, but these errors were encountered:
In an effort to standardize our error reporting to the client, we should create a custom error handling middleware (see).
This would enable us to simply throw an exception when we want to report an error to the user instead of mucking about with a response factory. The exception we throw probably should contain a
StatusCode
and maybe some Header information as well to help customize the response.The text was updated successfully, but these errors were encountered: