YouTip LogoYouTip

HTTP Tutorial - Protocol Basics

HTTP Methods

GET     /users          # Read
POST    /users          # Create
PUT     /users/1        # Update (full)
PATCH   /users/1        # Update (partial)
DELETE  /users/1        # Delete

Status Codes

200 OK              # Success
201 Created         # Resource created
400 Bad Request     # Client error
401 Unauthorized    # Not authenticated
404 Not Found       # Resource not found
500 Server Error    # Server error

Summary

  • GET reads, POST creates, PUT/PATCH updates, DELETE removes
  • Status codes indicate success or failure
← SVG Tutorial - Getting StartedXML Tutorial - Syntax and Stru β†’