Sobes.tech
Junior

Serverdən hansı növ cavablar bilirsiniz?

sobes.tech Süni İntellekt

AI-dan cavab

Server cavabları HTTP status kodları ilə təqdim olunur və 5 sinfə bölünür:

  1. 1xx (Məlumatlandırıcı): Sorğu qəbul edildi, işləmə davam edir.
    • 100 Continue
    • 101 Switching Protocols
    • 102 Processing
    • 103 Early Hints
  2. 2xx (Uğurlu): Sorğu uğurla qəbul edildi, başa düşüldü və işlənildi.
    • 200 OK
    • 201 Created
    • 202 Accepted
    • 203 Non-Authoritative Information
    • 204 No Content
    • 205 Reset Content
    • 206 Partial Content
  3. 3xx (Yönləndirmələr): Sorğunu tamamlamak üçün əlavə tədbirlər tələb olunur.
    • 300 Multiple Choices
    • 301 Moved Permanently
    • 302 Found (əvvəlki "Moved temporarily")
    • 303 See Other
    • 304 Not Modified
    • 307 Temporary Redirect
    • 308 Permanent Redirect
  4. 4xx (Müştəri Xətaları): Sorğu yalnış sintaksisə malikdir və ya yerinə yetirilə bilməz.
    • 400 Bad Request
    • 401 Unauthorized
    • 403 Forbidden
    • 404 Not Found
    • 405 Method Not Allowed
    • 408 Request Timeout
    • 409 Conflict
    • 415 Unsupported Media Type
    • 429 Too Many Requests
  5. 5xx (Server Xətaları): Server düzgün qurulmuş sorğunu yerinə yetirə bilmədi.
    • 500 Internal Server Error
    • 501 Not Implemented
    • 502 Bad Gateway
    • 503 Service Unavailable
    • 504 Gateway Timeout

Statusdan başqa, serverin cavabına başlıqlar (Header) və gövdə (Body) daxildir, əgər tətbiq olunursa. Başlıqlar metama'lumotlar (məzmun tipi, ölçü, keşik və s.) təmin edir və gövdə özündə məlumatları (HTML səhifəsi, JSON, XML və s.) saxlayır.