reject

Returns a rejected response with the provided value

http.when('get', '/api/1').reject(new Error());

results matching ""

    No results matching ""