3 ms·
When used in an API, HTTP acts mostly as a transport layer. There's no HTTP result code for "your request was successful but your Smart Washing Machine is out o
by AlexandrB 4y ago
When used in an API, HTTP acts mostly as a transport layer. There's no HTTP result code for "your request was successful but your Smart Washing Machine is out of detergent", for example.
- Marazan 4y agoThat's a 5xx (assuming the washing machine is the server in this scenario) A problem on remote that may be resolved in the future that will allow a succesful request. You are allowed to attach info to error code responses, there is a body you can put the details in.
- vsnf 4y agoAnd yet your example is perilously close to 418