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

What are other things?
If there are exceptions that the framework throws, and the status code is incorrect,
we should fix the status code.
But developers should catch other exceptions if needed, and handle properly.

Yes, when the framework Exception Handler catches Exceptions,
the default HTTP status code will be 500.

In my opinion, changing the default 500 to 4xx does nothing for security,
and 4xx is probably incorrect in most cases. Because 4xx means errors in client side,
but most exceptions caused by server side.

Can you show the exact requirement coming from the US Federal Government?
I don't get why the US Federal Government says such nonsense.
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