Mixin/overwrite the default request handler to get the api error.