Helper methods for HttpResponse.