- (make-response #!key port status (code 200) (reason "OK") (major 1) (minor 1) (headers (headers '())))procedure
Create a response, a defstruct-type record. A server will usually write a response with write-response; a client will read it with read-response.
You can either supply a status symbol or a code and/or reason to set the response status. If you do, the code will be set to match that symbol and the reason is set to the default reason belonging to that code, as provided by the HTTP standard(s). The allowed symbols are generally just Schemified versions of the default reason.
Only the code and reason are actual fields in the object; the status is a virtual field.
See http-status-codes for a list of all known default statuses.