botamp/botamp-php

View on GitHub
lib/Botamp/Utils/HttpCodes.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Botamp\Utils;

trait HttpCodes
{
    private static function getHttpCodes()
    {
        return [
            'ok' => 200,
            'created' => 201,
            'noContent' => 204,
            'notAcceptable' => 406,
            'notFound' => 404,
            'unauthorized' => 401,
            'unprocessableEntity' => 422,
            'tooManyRequests' => 429
        ];
    }
}