PHP Classes

File: displayApiError.php

Recommend this page to a friend!
  Classes of Stefan Kientzler   PHP Google Contacts API   displayApiError.php   Download  
File: displayApiError.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Google Contacts API
Access Google contacts with the Google People API
Author: By
Last change:
Date: 10 months ago
Size: 1,302 bytes


Class file image Download

 * @author Stefanius <>
 * @copyright MIT License - see the LICENSE file for details
function displayApiError(string $strAction, string $strResourceName, int $iResponseCode, string $strMessage, string $strStatus) : void
$strHTML =<<<HTML
        body, table {
            font-family: Sans-Serif;
            font-size: 12px;
        table {
            border-spacing: 0;
            border-collapse: collapse;
        td {
            border: 1px solid #ccc;
            padding: 2px 4px;
        tr td:nth-child(1) {
            font-weight: bold;