Git Product home page Git Product logo

http-methods-readme's Introduction

HTTP Methods

HTTP methods consist of four methods: GET, POST, PUT, and DELETE.

GET

The HTTP GET method retrieves a resource. Provided that there is no error in retrieving the resource, the GET request will return the resource in either a XML or JSON format, along with an HTTP status code of 200. If there is an error, the request will typically return either a 404 (not found) or 400 (bad request) status code.

Put

The HTTP PUT method updates a resource. Once the resource is updated successfully on the server, then a 200 status code is returned. If there is an error, the request will typically return either a 404 (not found) or 400 (bad request) status code.

Post

The HTTP POST method creates a new resource. Once the new resource has been created successfully on the server, a 201 status code is returned in addition to a location header with a link to the new resource. If the new resource can't be created, typically a 400 status code is returned.

Delete

The HTTP DELETE method deletes an existing resource. If the resource has been successfully deleted, either a 200 status code or a 204 status code (no content) will be returned. If the resource can't be deleted, either a 400 or 404 status code will be returned.

Resources

View HTTP Methods on Learn.co and start learning to code for free.

http-methods-readme's People

Contributors

deniznida avatar fislabstest avatar fs-lms-test-bot avatar irmiller22 avatar sarogers avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

babyshoes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.