API error change suggestion

Hello all!

I noticed today that you get a 404 error when you query the Create a Run endpoint with an invalid Assistant ID. I feel that this should be a 400 error, since the mistake exists in the body paragraph. Having it be a 404 error was a red herring that made me think it was a URL issue. If it had been a 400 error, I would have immediately known it was an issue with the assistant ID.

This might just be me being a junior engineer, so I might be wrong. But I do think a 400 error would have been more accurate in this situation.

I don’t know if this is the best place to give recommendations to the devs, but I figure its at least a good start.

2 Likes

Thanks for stopping by to let us know. Good point!

Hope you stick around. We’ve got a great dev community growing.

2 Likes