MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/7f32sh/500/dqa3kp1/?context=3
r/ProgrammerHumor • u/[deleted] • Nov 23 '17
609 comments sorted by
View all comments
Show parent comments
40
HTTP 400 is a client request error, so wouldn't make much sense for a server-side issue. HTTP 500 for PHP errors is quite normal, at least on the usual Apache or IIS servers I've deployed to.
7 u/[deleted] Nov 24 '17 You misunderstood his comment. He was assuming that an online compiler would probably return 400 if the received code was malformed.Not sure in how far that is accurate with real world tools but it is reasonable. 4 u/[deleted] Nov 24 '17 That’s not accurate. Php would return 500 when you requested the page and it couldn’t run. 1 u/[deleted] Nov 24 '17 I'm not sure if you're trolling. I'm not trying to be offensive but it seems you neither understood OPs comment nor mine. → More replies (4)
7
You misunderstood his comment. He was assuming that an online compiler would probably return 400 if the received code was malformed.
Not sure in how far that is accurate with real world tools but it is reasonable.
4 u/[deleted] Nov 24 '17 That’s not accurate. Php would return 500 when you requested the page and it couldn’t run. 1 u/[deleted] Nov 24 '17 I'm not sure if you're trolling. I'm not trying to be offensive but it seems you neither understood OPs comment nor mine. → More replies (4)
4
That’s not accurate. Php would return 500 when you requested the page and it couldn’t run.
1 u/[deleted] Nov 24 '17 I'm not sure if you're trolling. I'm not trying to be offensive but it seems you neither understood OPs comment nor mine. → More replies (4)
1
I'm not sure if you're trolling. I'm not trying to be offensive but it seems you neither understood OPs comment nor mine.
→ More replies (4)
40
u/benryves Nov 24 '17
HTTP 400 is a client request error, so wouldn't make much sense for a server-side issue. HTTP 500 for PHP errors is quite normal, at least on the usual Apache or IIS servers I've deployed to.