Giter Site home page Giter Site logo

http-status's Introduction

nullform/http-status

HTTP status codes as constants in one simple class.

Installation

composer require nullform/http-status

Constants

  • HttpStatus::CONTINUE
  • HttpStatus::SWITCHING_PROTOCOLS
  • HttpStatus::OK
  • HttpStatus::CREATED
  • HttpStatus::ACCEPTED
  • HttpStatus::NON_AUTHORITATIVE_INFORMATION
  • HttpStatus::NO_CONTENT
  • HttpStatus::RESET_CONTENT
  • HttpStatus::PARTIAL_CONTENT
  • HttpStatus::MULTIPLE_CHOICES
  • HttpStatus::MOVED_PERMANENTLY
  • HttpStatus::FOUND
  • HttpStatus::SEE_OTHER
  • HttpStatus::NOT_MODIFIED
  • HttpStatus::USE_PROXY
  • HttpStatus::TEMPORARY_REDIRECT
  • HttpStatus::BAD_REQUEST
  • HttpStatus::UNAUTHORIZED
  • HttpStatus::PAYMENT_REQUIRED
  • HttpStatus::FORBIDDEN
  • HttpStatus::NOT_FOUND
  • HttpStatus::METHOD_NOT_ALLOWED
  • HttpStatus::NOT_ACCEPTABLE
  • HttpStatus::PROXY_AUTHENTICATION_REQUIRED
  • HttpStatus::REQUEST_TIMEOUT
  • HttpStatus::CONFLICT
  • HttpStatus::GONE
  • HttpStatus::LENGTH_REQUIRED
  • HttpStatus::PRECONDITION_FAILED
  • HttpStatus::PAYLOAD_TOO_LARGE
  • HttpStatus::URI_TOO_LONG
  • HttpStatus::UNSUPPORTED_MEDIA_TYPE
  • HttpStatus::RANGE_NOT_SATISFIABLE
  • HttpStatus::EXPECTATION_FAILED
  • HttpStatus::UPGRADE_REQUIRED
  • HttpStatus::INTERNAL_SERVER_ERROR
  • HttpStatus::NOT_IMPLEMENTED
  • HttpStatus::BAD_GATEWAY
  • HttpStatus::SERVICE_UNAVAILABLE
  • HttpStatus::GATEWAY_TIMEOUT
  • HttpStatus::HTTP_VERSION_NOT_SUPPORTED

Methods

HttpStatus::isInformational ( int $status ) : bool

The request was received, continuing process.

HttpStatus::isSuccessful ( int $status ) : bool

The request was successfully received, understood, and accepted.

HttpStatus::isRedirection ( int $status ) : bool

Further action needs to be taken in order to complete the request.

HttpStatus::isClientError ( int $status ) : bool

The request contains bad syntax or cannot be fulfilled.

HttpStatus::isServerError ( int $status ) : bool

The server failed to fulfill an apparently valid request.

HttpStatus::reason ( int $status ) : bool

HTTP status reason phrase.

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.