Click here to Skip to main content
15,913,685 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
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 
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 
Sometimes I feel like no one reads the specs. The HTTP spec is one of the shorter ones too.

Forget about Exceptions, that's just your framework letting you down. An HTTP status code is not an exception or a technical error it's a status code. Using exceptions for that is like throwing an integer instead of an exception. The exception to this is when it's a technical error - those errors are in the 500s.

URL means uniform resource locator. That means it's the string(usually) that can be used to locate some resource. You your URL of mydomain.com/product/x is the locator for product x then the status code should reflect that. If the product has never existed then you should return 404, if you've moved it you should return 301, and if you've permanently deleted it then return 410.
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 
GeneralRe: Question For The Brits Out There Pin
W Balboos, GHB22-Feb-18 7:30
W Balboos, GHB22-Feb-18 7:30 
GeneralRe: Question For The Brits Out There Pin
Richard MacCutchan20-Feb-18 9:12
mveRichard MacCutchan20-Feb-18 9:12 
GeneralRe: Question For The Brits Out There Pin
NoNotThatBob20-Feb-18 9:13
NoNotThatBob20-Feb-18 9:13 
GeneralRe: Question For The Brits Out There Pin
R. Giskard Reventlov20-Feb-18 9:46
R. Giskard Reventlov20-Feb-18 9:46 

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.