codeceptjs/CodeceptJS

[feature-request] REST helper rejectOnError config option

Open

#1.293 geöffnet am 30. Okt. 2018

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (725 Forks)batch import
RESTenhancementgood first issue

Repository-Metriken

Stars
 (3.956 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11T 16h) (21 gemergte PRs in 30 T)

Beschreibung

Just that. How do you feel about a config option for the REST helper to make the promises reject whenever there is an error response, ex. status codes 4XX, 5XX, etc? (I personally think it should be the default behaviour)

I could create a pull request for this, as I have implemented it already on a custom helper on the project I'm working on.

Contributor Guide