Updated `HandleExceptionAsync` to set response status directly for each exception type and streamlined JSON serialization of error messages.
3.0 KiB
3.0 KiB
Updated `HandleExceptionAsync` to set response status directly for each exception type and streamlined JSON serialization of error messages.