Errors/Logs: Put correct status code into logs for error responses