Handle error response