src/page.js

Method page

Gets an HTTP status page

Parameters:

  • code must be a Number.
    (HTTP status code)

  • host must be a String.
    (Virtual hostname)

Returns a String
(Response body)

TurtleIO.prototype.page = function ( code, host ) { host = host && this.pages[host] ? host : "all"; return this.pages[host][code] || this.pages[host]["500"] || this.pages.all["500"]; };