ICanBoogie
  • Documentation
  • API Reference
  • HTTP master
Namespaces
  • ICanBoogie
    • Exception
    • HTTP
      • Headers
      • Request
      • RequestDispatcher
Classes
  • CallableDispatcher
  • DispatcherProvider
  • File
  • FileInfo
  • FileList
  • FileResponse
  • Headers
  • ProvideDispatcher
  • RedirectResponse
  • Request
  • RequestDispatcher
  • RequestOptionsMapper
  • RequestRange
  • Response
  • Status
  • WeightedDispatcher
Interfaces
  • Dispatcher
  • Exception
  • FileOptions
  • RequestMethods
  • RequestOptions
  • ResponseStatus
  • SecurityError
Exceptions
  • AuthenticationRequired
  • ClientError
  • DispatcherNotDefined
  • DispatcherProviderNotDefined
  • ForceRedirect
  • MethodNotSupported
  • NotFound
  • PermissionRequired
  • ServerError
  • ServiceUnavailable
  • StatusCodeNotValid

Class StatusCodeNotValid

Exception thrown when the HTTP status code is not valid.

Exception implements Throwable
┗ LogicException
┗ InvalidArgumentException
┗ ICanBoogie\HTTP\StatusCodeNotValid implements ICanBoogie\HTTP\Exception uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie\HTTP
Located at StatusCodeNotValid.php

Methods summary

protected get_status_code( void ) : integer

Returns

integer
public __construct( integer $status_code, string|null $message = null, integer $code = Status::INTERNAL_SERVER_ERROR, ICanBoogie\HTTP\Exception $previous = null )

Parameters

$status_code
$message
$code
$previous

Overrides

Exception::__construct
protected format_message( integer $status_code ) : string

Formats exception message.

Formats exception message.

Parameters

$status_code

Returns

string

Methods inherited from Exception

__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Properties summary

Properties inherited from Exception

$code, $file, $line, $message

Magic properties

public read-only $status_code : integer

The status code that is not supported.

HTTP master – Check on GitHub – API documentation generated by ApiGen