Click here to Skip to main content
15,897,226 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
Chris Maunder21-Feb-18 1:02
cofounderChris Maunder21-Feb-18 1:02 
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 
I recall reading in some news letter or email notification I get, that the IETF are actually considering adding an official status code to the HTTP spec, specifically for this reason.

Iv'e just had a look through the RFC List (RFC HTTP Index by Date) however and I can't see anything that jumps out at me.

The last official update to the established status codes was back in 2012, and that was only a handfull to communicate header size preferences and stuff Smile | :)

In my mind though, 404 in this scenario is perfectly valid, Iv'e used it a bunch of times, but with a small caveat.

I do what IIS does.

Everyone's seen the 404.3 that IIS throws back at you when you ask it to download a mime type it's not yet had configured correctly?

Well, why not use sub codes?

Many sub codes are free to be used as you see fit 404.3 is for example afaik not an official allocation anywhere.

There is however one small point no one here has actually brought up yet...

Is this a page request or is it an ajax request?

If it's a page request, that is /foo/bar/123 is expected to bring back a visible page change, then I understand the need to get this right, BUT, if your using something like angular , vue, aurelia etc then really what does it matter what your status code is?

In the case of an Ajax request the ONLY thing that should see the response code is the client code running in the browser, not the end user. So if you feel that sending back a 404 to what's essentially (or should be) invisible to the user of the web application, then a 404 is basically whats needed, given that all your doing is telling your own code that entity was not found.

Shawty
GeneralRe: Question on 404 (not technical, I just want opinions) Pin
Greg Bair22-Feb-18 2:26
professionalGreg Bair22-Feb-18 2:26 
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 PinPopular
CodeWraith20-Feb-18 8:44
CodeWraith20-Feb-18 8:44 
GeneralRe: Question For The Brits Out There PinPopular
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 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   20 votes