X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2FHTTPException%2FUnsupportedMediaTypeException.php;h=c14044f746f4711ef4135a0f124ef45e0e7da5c2;hb=46cd39fb34613f4b331793f19c0e562f93125066;hp=e73049333e9472344502eb23f286e351e9ba4999;hpb=b41bf77ec8187b6c7bdc5229510032662901e416;p=friendica.git diff --git a/src/Network/HTTPException/UnsupportedMediaTypeException.php b/src/Network/HTTPException/UnsupportedMediaTypeException.php index e73049333e..c14044f746 100644 --- a/src/Network/HTTPException/UnsupportedMediaTypeException.php +++ b/src/Network/HTTPException/UnsupportedMediaTypeException.php @@ -1,10 +1,31 @@ -. + * + */ + +namespace Friendica\Network\HTTPException; + +use Friendica\Network\HTTPException; + +class UnsupportedMediaTypeException extends HTTPException +{ + protected $code = 415; + protected $httpdesc = 'Unsupported Media Type'; + protected $explanation = 'The request entity has a media type which the server or resource does not support. For example, the client uploads an image as image/svg+xml, but the server requires that images use a different format.'; +}