Overview

Namespaces

  • DSchoenbauer
    • Exception
      • Http
        • ClientError
        • ServerError
      • Platform

Exceptions

  • BadRequestException
  • ClientErrorException
  • ConflictException
  • ForbiddenException
  • NotAllowedException
  • NotFoundException
  • PayloadTooLargeException
  • PaymentRequiredException
  • UnauthorizedException
  • UnavailableForLegalReasonsException
  • UnprocessableEntityException
  • UnsupportedMediaType
  • UpgradeRequiredException
  • Overview
  • Namespace
  • Class

Class UnsupportedMediaType

The origin server is refusing to service the request because the payload is in a format not supported by this method on the target resource.

The format problem might be due to the requests indicated Content-Type or Content-Encoding, or as a result of inspecting the data directly.

Exception
Extended by RuntimeException
Extended by DSchoenbauer\Exception\Platform\RuntimeException implements DSchoenbauer\Exception\ExceptionInterface
Extended by DSchoenbauer\Exception\Http\ClientError\ClientErrorException implements DSchoenbauer\Exception\Http\HttpExceptionInterface
Extended by DSchoenbauer\Exception\Http\ClientError\UnsupportedMediaType
Namespace: DSchoenbauer\Exception\Http\ClientError
Author: David Schoenbauer dschoenbauer@gmail.com
Since: 1.0.0
Link: Source
Located at Exception/Http/ClientError/UnsupportedMediaType.php
Methods summary
public
# __construct( mixed $supportedMediaTypes = null, string $message = "" )

Parameters

$supportedMediaTypes

a list of supported media types to give the client a clue as to what is expected

$message
a message from the offending section of code
public mixed
# getSupportedMediaTypes( )

Returns

mixed
a list of supported media types
public
# setSupportedMediaTypes( mixed $supportedMediaTypes )

Parameters

$supportedMediaTypes
a list of media types supported

Returns


$this
Methods inherited from Exception
__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties inherited from Exception
$code, $file, $line, $message
API documentation generated by ApiGen