Ready for Dataiku 10? Try out the Crash Course on new features!GET STARTED

API Service endpoint to return a specific HTTP status code

Solved!
daniel_adornes
Level 3
API Service endpoint to return a specific HTTP status code

Hello everyone!

When implementing a plain Python endpoint in an API Service, is there a way for me to define which HTTP status code I want to return? Like, instead of raising an error and sending back a status code 500, I want to raise a 400 code, so our consumers know that they have sent something wrong as input.

Thank you!

0 Kudos
1 Solution
daniel_adornes
Level 3
Author

Unfortunately, the information we got from Dataiku's support is that this currently isn't a possibility, but that a suggestion was sent to DSS's development team.

Thank you all

View solution in original post

0 Kudos
1 Reply
daniel_adornes
Level 3
Author

Unfortunately, the information we got from Dataiku's support is that this currently isn't a possibility, but that a suggestion was sent to DSS's development team.

Thank you all

View solution in original post

0 Kudos
A banner prompting to get Dataiku DSS