added error response mocking