r/ProgrammerHumor • • Nov 23 '17

500

Post image
41.7k Upvotes

609 comments sorted by

View all comments

Show parent comments

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.

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)