ZEEPROGRAMMER Telegram 2335
HTTP Status Codes versus Your Application

Remember that the HTTP status code is a code to indicate what is happening at the HTTP
level. It doesn't necessarily reflect what happened inside your application. For example, imagine
a user submits a sign-in form to the server, but didn't fill out the Last Name field. If your
application requires a last name it will fail to create an account for the user. This doesn't mean
you have to return an HTTP error code indicating failure. You probably want quite the opposite
to happen—you want to successfully return some content to the client with a 200 (OK) status
code. The content will tell the user a last name was not provided. From an application
perspective the request was a failure, but from an HTTP perspective the request was
successfully processed. This is normal in web applications.

#tips #programming #http



tgoop.com/zeeprogrammer/2335
Create:
Last Update:

HTTP Status Codes versus Your Application

Remember that the HTTP status code is a code to indicate what is happening at the HTTP
level. It doesn't necessarily reflect what happened inside your application. For example, imagine
a user submits a sign-in form to the server, but didn't fill out the Last Name field. If your
application requires a last name it will fail to create an account for the user. This doesn't mean
you have to return an HTTP error code indicating failure. You probably want quite the opposite
to happen—you want to successfully return some content to the client with a 200 (OK) status
code. The content will tell the user a last name was not provided. From an application
perspective the request was a failure, but from an HTTP perspective the request was
successfully processed. This is normal in web applications.

#tips #programming #http

BY Tech Program


Share with your friend now:
tgoop.com/zeeprogrammer/2335

View MORE
Open in Telegram


Telegram News

Date: |

Over 33,000 people sent out over 1,000 doxxing messages in the group. Although the administrators tried to delete all of the messages, the posting speed was far too much for them to keep up. How to Create a Private or Public Channel on Telegram? Hui said the messages, which included urging the disruption of airport operations, were attempts to incite followers to make use of poisonous, corrosive or flammable substances to vandalize police vehicles, and also called on others to make weapons to harm police. Your posting frequency depends on the topic of your channel. If you have a news channel, it’s OK to publish new content every day (or even every hour). For other industries, stick with 2-3 large posts a week. Healing through screaming therapy
from us


Telegram Tech Program
FROM American