Successful requests to the REST API return a 2xx HTTP code to indicate success 
either with or without JSON data depending on the context of the request.

At least one (I’ve not checked the othes yet) 4xx error returned from the REST 
API returns a plain text error message rather than a JSON error message. 

For example attempting to create a domain that exists returns a 400 error with 
the response text “Domain exists”.

Do you think this matters? Probably not much but does mean handling valid 
responses goes down a JSON path and handling error message goes down a plain 
text path. JSON error messages might arguable have been somewhat more 
consistent and programmable. 

thanks
_______________________________________________
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Reply via email to