Telegram Group & Telegram Channel
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



tg-me.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


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/zeeprogrammer/2335

View MORE
Open in Telegram


Tech Program Telegram | DID YOU KNOW?

Date: |

Dump Scam in Leaked Telegram Chat

A leaked Telegram discussion by 50 so-called crypto influencers has exposed the extraordinary steps they take in order to profit on the back off unsuspecting defi investors. According to a leaked screenshot of the chat, an elaborate plan to defraud defi investors using the worthless “$Few” tokens had been hatched. $Few tokens would be airdropped to some of the influencers who in turn promoted these to unsuspecting followers on Twitter.

How Does Telegram Make Money?

Telegram is a free app and runs on donations. According to a blog on the telegram: We believe in fast and secure messaging that is also 100% free. Pavel Durov, who shares our vision, supplied Telegram with a generous donation, so we have quite enough money for the time being. If Telegram runs out, we will introduce non-essential paid options to support the infrastructure and finance developer salaries. But making profits will never be an end-goal for Telegram.

Tech Program from us


Telegram Tech Program
FROM USA