public function error($message = 'Unknown Error')
    {
        $format = config('api.errorFormat');

        if ($message instanceof \Exception) {
            if (config('api.debug') === true) {
                $format['debug'] = [
                    'line' => $message->getLine(),
                    'file' => $message->getFile(),
                    'class' => get_class($message),
                    'trace' => explode("\n", $message->getTraceAsString()),
                ];
            }

            $this->statusCode = $this->translateExceptionCode($message);
            $message = $message->getMessage();
        }

        return $this->respond(
            $this->format($message, $format)
        );
    }