jessecarl / handy

Golang https handlers that might come in handy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handler that responds with selected HTTP Status

jessecarl opened this issue · comments

An HTTP handler that responds with the specified HTTP status would provide a deterministic method for testing external response calls.

To start, this will only support status codes that support a full response with headers and body and do not require any additional action or state from the server or client.

Implemented with most 2xx, 4xx, and 5xx responses. no 1xx or 3xx responses at the moment, but those might happen in a future issue.