Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: start a new page to document http status codes (#11696)

Div Aroraf89ff0bd832f
diff --git a/apps/docs/components/Navigation/Navigation.constants.ts b/apps/docs/components/Navigation/Navigation.constants.ts
index 4a6b429666e..ed9fc4b1087 100644
--- a/apps/docs/components/Navigation/Navigation.constants.ts
+++ b/apps/docs/components/Navigation/Navigation.constants.ts
@@ -264,6 +264,7 @@ export const menuItems: NavMenu = {
{ name: 'Compute Add-ons', url: '/guides/platform/compute-add-ons', items: [] },
{ name: 'Custom Domains', url: '/guides/platform/custom-domains', items: [] },
{ name: 'Database Usage', url: '/guides/platform/database-usage', items: [] },
+ { name: 'HTTP Status Codes', url: '/guides/platform/http-status-codes', items: [] },
{ name: 'Logging', url: '/guides/platform/logs', items: [] },
{ name: 'Metrics', url: '/guides/platform/metrics', items: [] },
{
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
index 2443c1e6db6..d44b6ac2116 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
@@ -500,6 +500,7 @@ export const platform = {
items: [
{ name: 'Access Control', url: '/guides/platform/access-control', items: [] },
{ name: 'Database Usage', url: '/guides/platform/database-usage', items: [] },
+ { name: 'HTTP Status Codes', url: '/guides/platform/http-status-codes', items: [] },
{ name: 'Logging', url: '/guides/platform/logs', items: [] },
{ name: 'Metrics', url: '/guides/platform/metrics', items: [] },
{
diff --git a/apps/docs/pages/guides/platform/http-status-codes.mdx b/apps/docs/pages/guides/platform/http-status-codes.mdx
new file mode 100644
index 00000000000..7a02133916d
--- /dev/null
+++ b/apps/docs/pages/guides/platform/http-status-codes.mdx
@@ -0,0 +1,41 @@
+import Layout from '~/layouts/DefaultGuideLayout'
+
+export const meta = {
+ id: 'http-status-codes',
+ title: 'HTTP Status Codes',
+ description: 'HTTP Status Codes used by the Supabase platform',
+}
+
+The Supabase platform offers several HTTP APIs for each project. These APIs can use the status codes to indicate the state of the project, and the request being processed. The status codes returned for requests can be access via the [logs explorer](../platform/logs#logs-explorer).
+
+## 2XX Success
+
+2XX status codes indicate that the request was processed successfully.
+
+## 3XX Redirects
+
+3XX status codes indicate that the client must initiate another course of action to have the request processed successfully. The most popular usage of 3XX codes is to redirect the client to a different location.
+
+## 4XX Client Errors
+
+4XX status codes indicate an issue on the client's end with the request being made. These could include missing or invalid auth information, a malformed request, making too many requests in too short a time period ("rate limiting"), or a network issue on the client's end.
+
+## 5XX Server or Project Errors
+
+5XX status codes indicate that the project was unable to process the request successfully, but not because of an issue with the client's request.
+
+5XX status codes can be the result of the project not having enough [compute](/docs/guides/platform/compute-add-ons) to process a complex request being made by a client or not being able to keep up with the volume of requests made against the project.
+
+### 54X Project Errors
+
+54X status codes are custom codes used by the Supabase platform to indicate the state of the project.
+
+#### 540 Project Paused
+
+The project the request was being made against has been paused. The project cannot process requests until it is un-paused by the owner.
+
+Free-tier projects may be paused due to inactivity, on request by the owner, or in rare instances, due to abuse.
+
+export const Page = ({ children }) => <Layout meta={meta} children={children} />
+
+export default Page