Our community is getting a makeover! We will be migrating to a new community that integrates more closely with our support and knowledge base tools, as well as the core Domino product, to give you a more unified experience. Existing community articles have been added to our knowledge base, which you can preview here with your community credentials: https://tickets.dominodatalab.com/hc/en-us/community/topics Watch this space for further updates and send any feedback to [email protected] with subject "Community Feedback".

As a Model API developer, I would like to be able to control the HTTP response code

dan.stern
dan.stern Member, Moderator, Domino Posts: 37 mod

There are cases where we would would like to have our code (Python or R) decide which HTTP status code to return.

Perhaps we want to use 400 if a user sends an invalid object to the API, for example.

EXAMPLE IMPLEMENTATION: As a Model API developer, if I return a dictionary with a key of "_status_code" from 200-299 or 400-599, that status code will be used.

0 votes

Active · Last Updated

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!