You are here

UnsupportedMediaTypeException.php in RESTful 7.2

File

src/Exception/UnsupportedMediaTypeException.php
View source
<?php

/**
 * @file
 * Contains \Drupal\restful\Exception\UnsupportedMediaTypeException.
 */
namespace Drupal\restful\Exception;

class UnsupportedMediaTypeException extends RestfulException {

  /**
   * Defines the HTTP error code.
   *
   * @var int
   */
  protected $code = 415;

  /**
   * {@inheritdoc}
   */
  protected $instance = 'help/restful/problem-instances-unsupported-media-type';

}

Classes