Add on error on the request call