Set status code to 500 for "generic" exception
In many cases, such errors would occur for an internal reason not because of an invalid request. So prefer "500 Internal Server Error" over "400 Bad Request" which might be misleading if the error is actually "internal". Later on, we should make a proper distinction between true internal errors and *currently unhandled* client errors. One such case concerns converting TypeResolverException that might occur when setting a relation to a bad target into a proper Bad Request (hence the "TODO" in respective test).
Please register or sign in to comment