Die Abfragen erzeugen die richtigen HTTP-Codes. Ist die Anfrage richtig, sind auch die Rückgaben richtig.

This commit is contained in:
2021-04-06 20:01:15 +02:00
parent d16a4e427d
commit 3854737622
4 changed files with 232 additions and 0 deletions
@@ -0,0 +1,21 @@
<?php
namespace TorstenHettstedt\TimekeepingApi\Controller;
use Slim\Exception\HttpSpecializedException;
class HttpConflictRequestException extends HttpSpecializedException
{
/**
* @var int
*/
protected $code = 409;
/**
* @var string
*/
protected $message = 'Conflict.';
protected $title = '409 Conflict';
protected $description = 'The 409 (Conflict) status code indicates that the request could not be completed due to a conflict with the current state of the target resource.';
}