Serenity Operating System
1/*
2 * Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#pragma once
8
9#include <AK/Forward.h>
10
11namespace Web::Fetch::Infrastructure {
12
13// https://fetch.spec.whatwg.org/#concept-status
14// A status is an integer in the range 0 to 999, inclusive.
15using Status = u16;
16
17[[nodiscard]] bool is_null_body_status(Status);
18[[nodiscard]] bool is_ok_status(Status);
19[[nodiscard]] bool is_redirect_status(Status);
20
21}