Click here to Skip to main content
15,913,486 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Question on 404 (not technical, I just want opinions) Pin
MadMyche21-Feb-18 4:46
professionalMadMyche21-Feb-18 4:46 
GeneralRe: Question on 404 (not technical, I just want opinions) Pin
Sander Rossel21-Feb-18 8:35
professionalSander Rossel21-Feb-18 8:35 
GeneralRe: Question on 404 (not technical, I just want opinions) Pin
Bajaja21-Feb-18 20:53
professionalBajaja21-Feb-18 20:53 
GeneralRe: Question on 404 (not technical, I just want opinions) Pin
John Bevan21-Feb-18 21:19
John Bevan21-Feb-18 21:19 
GeneralRe: Question on 404 (not technical, I just want opinions) Pin
maze321-Feb-18 23:27
professionalmaze321-Feb-18 23:27 
GeneralRe: Question on 404 (not technical, I just want opinions) Pin
ScottM121-Feb-18 23:58
ScottM121-Feb-18 23:58 
GeneralRe: Question on 404 (not technical, I just want opinions) Pin
Peter Shaw21-Feb-18 23:58
professionalPeter Shaw21-Feb-18 23:58 
GeneralRe: Question on 404 (not technical, I just want opinions) Pin
Greg Bair22-Feb-18 2:26
professionalGreg Bair22-Feb-18 2:26 
It depends. If the request is coming to /api/resource/{id}, then it's a 404. The spec states:

Quote:
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.


If it's as the result of parameters (/api/resource/?foo=bar), then I'd give a 200 and an empty result.
GeneralRe: Question on 404 (not technical, I just want opinions) Pin
Bruce Patin22-Feb-18 3:41
Bruce Patin22-Feb-18 3:41 
AnswerRe: Question on 404 (not technical, I just want opinions) Pin
DaveArel22-Feb-18 4:35
DaveArel22-Feb-18 4:35 
GeneralRe: Question on 404 (not technical, I just want opinions) Pin
Dar Brett22-Feb-18 4:50
Dar Brett22-Feb-18 4:50 
GeneralRe: Question on 404 (not technical, I just want opinions) Pin
Kirk 1038982122-Feb-18 8:50
Kirk 1038982122-Feb-18 8:50 
GeneralRe: Question on 404 (not technical, I just want opinions) Pin
jschell23-Feb-18 12:50
jschell23-Feb-18 12:50 
GeneralRe: Question on 404 (not technical, I just want opinions) Pin
Dimitrios Kalemis25-Feb-18 2:14
Dimitrios Kalemis25-Feb-18 2:14 
GeneralRe: Question on 404 (not technical, I just want opinions) Pin
RandyBuchholz27-Feb-18 11:05
RandyBuchholz27-Feb-18 11:05 
GeneralQuestion For The Brits Out There Pin
Kevin Marois20-Feb-18 8:29
professionalKevin Marois20-Feb-18 8:29 
GeneralRe: Question For The Brits Out There Pin
CodeWraith20-Feb-18 8:44
CodeWraith20-Feb-18 8:44 
GeneralRe: Question For The Brits Out There Pin
DRHuff20-Feb-18 9:12
DRHuff20-Feb-18 9:12 
GeneralRe: Question For The Brits Out There Pin
den2k8820-Feb-18 21:46
professionalden2k8820-Feb-18 21:46 
GeneralRe: Question For The Brits Out There Pin
A_Griffin20-Feb-18 8:46
A_Griffin20-Feb-18 8:46 
GeneralRe: Question For The Brits Out There Pin
Slacker00720-Feb-18 9:16
professionalSlacker00720-Feb-18 9:16 
GeneralRe: Question For The Brits Out There Pin
k505420-Feb-18 10:50
mvek505420-Feb-18 10:50 
GeneralRe: Question For The Brits Out There Pin
A_Griffin20-Feb-18 12:06
A_Griffin20-Feb-18 12:06 
GeneralRe: Question For The Brits Out There Pin
k505420-Feb-18 12:50
mvek505420-Feb-18 12:50 
GeneralRe: Question For The Brits Out There Pin
W Balboos, GHB22-Feb-18 7:30
W Balboos, GHB22-Feb-18 7:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.