Added error response for exception