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 }) => ( +
+ + + + + + + + + {errors.map((e, i) => ( + + + + + ))} + +
Status CodeDescription
{e.code}{e.desc}
+
+ ); + const renderContent = () => { switch (activeTab) { case 'intro': @@ -131,6 +153,27 @@ console.log(data); ); + case 'errors': + return ( +
+

Error Reference

+

+ Common HTTP status codes and their meanings when making API requests. +

+ +

+ Status Codes +

+ +
+ ); + case 'limits': return (
@@ -359,7 +402,8 @@ console.log("File URL:", result.url);