Document error behavior for HTTP & OpenAPI #985
Labels
change: documentation
Improvements or additions to documentation. It won't impact a version change.
change: fix
Something isn't working. Impacts in a minor version change.
Milestone
Discussed in #978
Originally posted by matthias-pichler August 19, 2024
Currently the default output behavior for the
call: http
task iscontent
which returns the content (i.e. body) of the response. This is very convenient since authors most likely want the response data. However it is very unintuitive when the API returns an error. Sincejq
will happily returnnull
if non existing properties are accessed subsequent tasks might seem to work or the workflow might fail many steps downstream. Should we update the ergonomics around error handling?call: http
raise an error if a not-ok (outside of [200, 399]) status is reported?response
to report the whole response?We should document that
call: http
andcall: openapi
raise acommunication
error for status codes outside of[200, 399]
The text was updated successfully, but these errors were encountered: