What could be simpler than returning HTTP status codes? Did the page render? Great, return 200. Does the page not exist? That’s a 404. Do I want to redirect the user to another page? 302, or maybe 301. I like to imagine that HTTP status codes are like CB 10 codes. “Breaker breaker, this is White Chocolate Thunder. We’ve got a 200 OK here.” — Aaron Patterson (@tenderlove) Life is bliss, well… until someone tells you you’re not doing this REST thing. Next thing you know, you can’t sleep at night becaus...

Źródło: racksburg.com
Dziel się z innymi:
Choosing an HTTP Status Code — Stop Making It Hard

Web 3243 dni, 16 godzin, 24 minuty temu rroszczyk 136 pokaż kod licznika zwiń

Wczytywanie artykułów...