HTTP/Code - Help

HTTP

 Code
 lookup an HTTP status code

 Calling Sequence Code(value)

Parameters

 value - a three digit integer value of an HTTP return code

Description

 • Code returns the text message that corresponds to the status code of the value parameter.  The procedure will throw an error if an unknown or invalid status code is given.
 • A list of valid HTTP/1.1 status codes can be found in section 10 of RFC 2616.

Examples

 > $\mathrm{HTTP}:-\mathrm{Code}\left(200\right)$
 ${"OK"}$ (1)
 > $\mathrm{HTTP}:-\mathrm{Code}\left(404\right)$
 ${"Not Found"}$ (2)
 > $\mathrm{HTTP}:-\mathrm{Code}\left(1\right)$

Compatibility

 • The HTTP[Code] command was introduced in Maple 15.