dlundgren/phagrancy

View on GitHub
src/Http/Response/NotAuthorized.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

/**
 * @file
 * Contains Phagrancy\Http\Response\NotAuthorized
 */

namespace Phagrancy\Http\Response;

/**
 * HTTP Not Authorized Response
 *
 * @package Phagrancy\Http\Response
 */
class NotAuthorized
    extends Json
{
    public function __construct()
    {
        parent::__construct(['error' => 401, 'message' => 'not authorized'], 401);
    }
}