You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
6404 is not about availability, it's about existence. Just because a service is not available in some circumstances you shouldn't provide a 404 response unless you want people to believe that it does not exist at all. A 404 response would be meaningless for this situation.Jules– Jules2018-07-12 16:51:11 +00:00Commented Jul 12, 2018 at 16:51
-
@jules According the spec for 403 (which could be out of date): "If the server does not wish to make this information available to the client, the status code 404 (Not Found) can be used instead." emphasis mine. So if 403 is OK, then 404 would also be, but not necessarily for the reason given.JimmyJames– JimmyJames2018-07-12 17:57:37 +00:00Commented Jul 12, 2018 at 17:57
-
@JimmyJames - yes, it's within the specification, but is a really bad idea because it makes debugging problems extremely difficult. Not what you want in an API.Jules– Jules2018-07-12 19:28:32 +00:00Commented Jul 12, 2018 at 19:28
-
3@Jules The service doesn't exist in some areas. Much like there are many small stores that only exist in my city, so asking their address in another city the correct response is "doesn't exist."Andy– Andy2018-07-13 00:04:35 +00:00Commented Jul 13, 2018 at 0:04
-
ehmm talking about "existance" about a service url path is the least - philosophical, for the sake of clarity once you publish a path you must provide an answer, 403 is the way to go in this case, with some kind of verbal description of the situation.Edoardo– Edoardo2018-07-13 09:13:34 +00:00Commented Jul 13, 2018 at 9:13
|
Show 1 more comment
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you