201 status code code example

Example 1: status 201

status code 201. Created.

The request has been fulfilled and has resulted in one or more new resources being created.

Example 2: what status code do you get most

200 the most
201 whenever I post patient and everything is alright
403 generally while development
500 environment down, rare maybe one time in a month or so
Never seen 3xx

Example 3: status code login success

The header that the server sends is either the 200 OK or 401 denied status codes on success or failure.

See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html Section 10.4.2 401 Unauthorized for this.

When sending the 401, the server must send a

WWW-Authenticate = "WWW-Authenticate" ":" 1#challenge

to indicate what scheme should be used to authenticate.

See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html Section 14.47 WWW-Authenticate for this.

Tags:

Html Example