Generate a specific HTTP status code

Generates a response with the given HTTP status code. For JSON responses, include the `Accept: application/json` header.