Correct error status


(Dimitrie) #1

If i’m using this is an issue tracker and i shouldn’t, do let me know :grimacing:
Would be nice to actually get 400 instead of sunny 200 OK when things go south. I’ll shut up now. I’m just nitpicking.


(Steve Baer) #2

You should be getting decent error return codes. Can you provide a case where 200 is being returned when it obviously failed?


(Dimitrie) #3

Voila. I’m sending POST new points with “pies”. Response contains no body, just headers, but still it says “200”. Shouldn’t this be “400”?

curl -X "POST" "https://compute.rhino3d.com/Rhino/Geometry/Point3d/New" \
     -H 'api_token: spam@dimitrie.org' \
     -H 'Content-Type: text/plain; charset=utf-8' \
     -d "[ \"pies!\" ]"