When an unknown error occurs set the HTTP status code to 500