#httprestapi — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #httprestapi, aggregated by home.social.
-
If you publish an #HTTPRestAPI, and my request can't be fulfilled due to an error, then don't just send back a random web page with an error message. Your documentation said nothing about random web pages. Thus, my #API client software expects a response of the mime type I requested: XML, JSON, plain text. Not HTML. Not ever. Please send back an error message in the requested mime type and document it. Looking at you, #BigCommerce.
-
If you publish an #HTTPRESTAPI, and I make a request that has your #API respond with: "hey you need to log in for that", or, "hey you aren't allowed that info", then PLEASE do not return HTTPStatusCode 200! Use something that indicates ACCESS DENIED. Looking at you, #Shopify.
#UserExperience #UX