src/Responder.php
public function error($errorCode = null, string $message = null): ErrorResponseBuilder
    {
        return $this->errorResponseBuilder->error($errorCode, $message);
    }
public function error($errorCode = null, string $message = null): ErrorResponseBuilder
    {
        return $this->errorResponseBuilder->error($errorCode, $message);
    }
Build an error response.

@param  mixed|null  $errorCode
@param  string|null $message
@return \Flugg\Responder\Http\Responses\ErrorResponseBuilder