kalisio / krawler

A minimalist (geospatial) ETL
https://kalisio.github.io/krawler/
MIT License
54 stars 13 forks source link

Task must not be in error if the response code is a successful code #254

Closed cnouguier closed 1 year ago

cnouguier commented 1 year ago

Steps to reproduce

Create a task that send a request to an endpoint which returns a code such as 204 and the task is in error

Expected behavior

The task shoud succeeded

Actual behavior

The task failed

System configuration

Krawler 2.4

cnouguier commented 1 year ago

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#successful_responses

cnouguier commented 1 year ago

For now, the task will be rejected if the code is greater than 299. It could be interestting to define the codes that shoud reject the task.