<?php
namespace Project\Installer\Helpers;
class ErrorHelper {
/**
* Return Common Error View
* @param string|array $content
*/
public function redirectErrorPage(string | array $content) {
$page_title = "Installation - Error - " . (is_array($content)) ? $content[0] : $content;
return view('installer.pages.error',compact('page_title','content'));
}
}
In case of an error, the API will return an error response containing a specific error code 400, 403 Failed and a user-friendly message. Refer to our API documentation for a comprehensive list of error codes and their descriptions.