Lines Matching refs:status_code
37 ReplyWithError(brillo::http::status_code::InternalServerError,
52 void ResponseImpl::Reply(int status_code,
56 status_code_ = status_code;
62 void ResponseImpl::ReplyWithText(int status_code,
65 Reply(status_code, brillo::MemoryStream::OpenCopyOf(text, nullptr),
69 void ResponseImpl::ReplyWithJson(int status_code, const base::Value* json) {
77 ReplyWithText(status_code, text, mime_type);
81 int status_code, const std::map<std::string, std::string>& json) {
86 ReplyWithJson(status_code, &json_value);
89 void ResponseImpl::Redirect(int status_code, const std::string& redirect_url) {
91 ReplyWithError(status_code, "");
94 void ResponseImpl::ReplyWithError(int status_code,
96 status_code_ = status_code;
102 ReplyWithError(brillo::http::status_code::NotFound, "Not Found");