diff --git a/frontend/src/pages/Docs.jsx b/frontend/src/pages/Docs.jsx index a729c7296..278fd7225 100644 --- a/frontend/src/pages/Docs.jsx +++ b/frontend/src/pages/Docs.jsx @@ -1,5 +1,5 @@ import { useState } from 'react'; -import { Copy, Terminal, Database, Shield, HardDrive, Check, Server, Menu, X, ChevronDown, AlertCircle, Zap } from 'lucide-react'; +import { Copy, Terminal, Database, Shield, HardDrive, Check, Server, Menu, X, ChevronDown, AlertCircle, Zap, AlertTriangle } from 'lucide-react'; import { API_URL } from '../config'; import Footer from '../components/Layout/Footer'; @@ -88,6 +88,28 @@ console.log(data); ); + // Helper for Error Status Codes Table + const ErrorTable = ({ errors }) => ( +
| Status Code | +Description | +
|---|---|
| {e.code} | +{e.desc} | +
+ Common HTTP status codes and their meanings when making API requests. +
+ +