Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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/iiif_functions.php lines 1534 to 1542

Definition

 
function iiif_error($errorcode 404$errors = array())
    {
    if(
function_exists("http_response_code"))
        {
        
http_response_code($errorcode); # Send error status
        
}
    echo 
json_encode($errors);   
    exit();
    }

This article was last updated 23rd April 2024 19:35 Europe/London time based on the source file dated 3rd April 2024 13:55 Europe/London time.