Added logic to properly map all existing errors from v3 to v2 in the API

This commit is contained in:
Alejandro Celaya
2022-08-13 17:15:04 +02:00
parent cd4fe4362b
commit 905f51fbd0
24 changed files with 51 additions and 30 deletions

View File

@@ -16,7 +16,7 @@ class MissingAuthenticationException extends RuntimeException implements Problem
use CommonProblemDetailsExceptionTrait;
private const TITLE = 'Invalid authorization';
private const TYPE = 'INVALID_AUTHORIZATION';
public const TYPE = 'https://shlink.io/api/error/missing-authentication';
public static function forHeaders(array $expectedHeaders): self
{