refactored error response body