Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

iiif_error()

Description

Handle a IIIF error.

Parameters

ColumnTypeDefaultDescription
$errorcode integer 404 The error code
$errors array array An array of errors

Return

void

Location

include/api_functions.php lines 345 to 361

Definition

 
function iiif_error($errorcode 404$errors = array())
    {
    global 
$iiif_debug;
    if(
function_exists("http_response_code"))
        {
        
http_response_code($errorcode); # Send error status
        
}
    if(
$iiif_debug)
        {
        echo 
implode("<br />",$errors);     
        }
    else
        {
        echo 
implode("<br />",$errors);
        }
    exit();
    }

This article was last updated 3rd December 2020 13:05 Europe/London time based on the source file dated 25th June 2020 16:08 Europe/London time.