src/Arvici/Exception/Response/HttpException.php
public function toResponse()
    {
        $response = Http::getInstance()->response();
        $response->reset();
        $response->status($this->code);
        if (is_string($this->details)) {
            $response->body($this->details);
        } elseif (is_string($this->message)) {
            $response->body($this->message);
        }

        return $response;
    }
public function toResponse()
    {
        $response = Http::getInstance()->response();
        $response->reset();
        $response->status($this->code);
        if (is_string($this->details)) {
            $response->body($this->details);
        } elseif (is_string($this->message)) {
            $response->body($this->message);
        }

        return $response;
    }
public function toResponse ( ) { $ response = Http :: getInstance ( ) -> response ( ) ; $ response -> reset ( ) ; $ response -> status ( $ this -> code ) ; if ( is_string ( $ this -> details ) ) { $ response -> body ( $ this -> details ) ; } elseif ( is_string ( $ this -> message ) ) { $ response -> body ( $ this -> message ) ; } return $ response ; }
Converts the error to a response object.

@return Response response object.
Converts the error to a response object .