3 ms·
> Sure, HTTP only has 5 verbs More like 40. You can also just like...make up your own verbs, the HTTP police won't arrest you, though this rustles the jimmies
by kortex 5y ago
> Sure, HTTP only has 5 verbs
More like 40.
You can also just like...make up your own verbs, the HTTP police won't arrest you, though this rustles the jimmies of HTTP purists. No guarantees any middleware will support it, and this is probably a bad idea if you actually do this in public apis, it's more so "hey, these verbs aren't magic incantations, it's just a string which gets switch-cased".
Same with HTTP status codes. There's obviously some well known ones but you can just like...make up your own.
https://www.iana.org/assignments/http-methods/http-methods.xhtml https://www.iana.org/assignments/http-methods/http-methods.x...