Update error response handling