Welcome Guest, Not a member yet? Register   Sign In
SecurityException Status Codes
#7

Indeed, it would be possible to say that 500 represents system instability.
If exceptions can be caught and recovered, the application should do so.

However, if it is a client-side problem, we should return 4xx, and if it is a server-side problem,
we should return 5xx. For example, if it cannot connect to the database, we can only return 500.

Thus, if the framework throws an exception and returns an inappropriate 500 response,
it is a bug in the framework. Please report a bug or send a PR to fix it.
Reply


Messages In This Thread
SecurityException Status Codes - by donpwinston - 03-27-2024, 04:26 AM
RE: SecurityException Status Codes - by kenjis - 03-27-2024, 03:50 PM
RE: SecurityException Status Codes - by kenjis - 03-31-2024, 02:43 PM
RE: SecurityException Status Codes - by kenjis - 04-01-2024, 06:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB