Say you have an endpoint like the following:
/users/{id}/telephone-numbers
If you are at the moment unable to support retrieving telephone numbers for some users who meet certain criteria (let’s say it’s something like they live in Brazil), what is the appropriate response when asked for the telephone numbers of these users?
A 405 seems kind of accurate, but I’m unsure if this would imply that GET isn’t supported for the telephone numbers of any user.
RFC 9110 says that 405 refers to the target resource, but is the target resource the collection of telephone numbers of all users or of the one particular user?
TSL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.