for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace VGirol\JsonApiStructure\Exception;
/**
* Exception for validation
*/
class ValidationException extends \Exception
{
* Get the recommended HTTP status code to be used for the response.
*
* @return int
public function errorStatus(): int
return $this->getCode();
}