• Skip to main content
  • Skip to search
  • Skip to select language

Learn front-end development with high quality, interactive courses from Scrimba. Enroll now!

MDN Web Docs
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Extensions

      Developing extensions for web browsers

    • Accessibility

      Build web projects usable for all

    • Web Technology

      Web technology reference for developers

  • Learn
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • Plus
    • Overview

      A customized MDN experience

    • AI Help

      Get real-time assistance and support

    • Updates

      All browser compatibility updates at a glance

    • Documentation

      Learn how to use MDN Plus

    • FAQ

      Frequently asked questions about MDN Plus

  • Curriculum New
  • Blog
    • Playground

      Write, test and share your code

    • HTTP Observatory

      Scan a website for free

    • AI Help

      Get real-time assistance and support

  1. Technologies web pour développeurs
  2. HTTP
  3. Reference
  4. Codes de réponse HTTP
  5. 400 Bad Request
    • Is this useful?
    • English (US)
    • Deutsch
    • Español
    • 日本語
    • 한국어
    • Português (do Brasil)
    • Русский
    • 中文 (简体)
    • 正體中文 (繁體)

Cette page a été traduite à partir de l'anglais par la communauté. Vous pouvez également contribuer en rejoignant la communauté francophone sur MDN Web Docs.

Dans cet article

  • Statut
  • Spécifications
  • Compatibilité des navigateurs
  • Voir aussi
  1. HTTP
  2. Guides
  3. Un aperçu de HTTP
  4. L'évolution du protocole HTTP
  5. Une session HTTP typique
  6. HTTP messages
  7. Types MIME
    1. Liste des types MIME communs
  8. Compression dans HTTP
  9. Mise en cache HTTP
  10. Authentification HTTP
  11. Utiliser les cookies HTTP
  12. Redirections en HTTP
  13. HTTP : Requêtes conditionnelles
  14. Requêtes d'intervalle en HTTP
  15. Indications du client (client hints)
  16. Compression Dictionary Transport Expérimental
  17. Network Error Logging Expérimental
  18. La négociation de contenu
    1. Default Accept values
  19. Détection du navigateur à l'aide de User-Agent
  20. Connection management in HTTP/1.x
  21. Mécanisme de mise à niveau du protocole
  22. Proxy servers and tunneling
    1. Proxy Auto-Configuration (PAC) file
  23. Sécurité HTTP
    1. HTTP Observatory
    2. Practical implementation guides
    3. Feature Policy Expérimental
    4. Cross-Origin Resource Policy (CORP)
    5. Cross-origin resource sharing (CORS)
    6. Erreurs CORS
      1. Raison : CORS désactivé
      2. Raison : l'en-tête CORS « Access-Control-Allow-Origin » ne correspond pas à « xyz »
      3. Raison : l'en-tête CORS « Access-Control-Allow-Origin » est manquant
      4. Reason: CORS header 'Origin' cannot be added
      5. Reason: CORS preflight channel did not succeed
      6. Raison: la requête CORS a échoué
      7. Reason: CORS request external redirect not allowed
      8. Raison : la requête CORS n'utilise pas HTTP
      9. Reason: Credential is not supported if the CORS header 'Access-Control-Allow-Origin' is '*'
      10. Reason: Did not find method in CORS header 'Access-Control-Allow-Methods'
      11. Reason: expected 'true' in CORS header 'Access-Control-Allow-Credentials'
      12. Reason: invalid token 'xyz' in CORS header 'Access-Control-Allow-Headers'
      13. Reason: invalid token 'xyz' in CORS header 'Access-Control-Allow-Methods'
      14. Reason: missing token 'xyz' in CORS header 'Access-Control-Allow-Headers' from CORS preflight channel
      15. Reason: Multiple CORS header 'Access-Control-Allow-Origin' not allowed
    7. Content Security Policy (CSP)
      1. Errors and warnings
  24. Références
  25. En-têtes HTTP
    1. Accept
    2. Accept-CH
    3. Accept-Encoding
    4. Accept-Language
    5. Accept-Patch
    6. Accept-Post
    7. Accept-Ranges
    8. Access-Control-Allow-Credentials
    9. Access-Control-Allow-Headers
    10. Access-Control-Allow-Methods
    11. Access-Control-Allow-Origin
    12. Access-Control-Expose-Headers
    13. Access-Control-Max-Age
    14. Access-Control-Request-Headers
    15. Access-Control-Request-Method
    16. Age
    17. Allow
    18. Alt-Svc
    19. Alt-Used
    20. Attribution-Reporting-Eligible Expérimental
    21. Attribution-Reporting-Register-Source Expérimental
    22. Attribution-Reporting-Register-Trigger Expérimental
    23. Authorization
    24. Available-Dictionary Expérimental
    25. Cache-Control
    26. Clear-Site-Data
    27. Connection
    28. Content-Digest
    29. Content-Disposition
    30. Content-DPR Non standard Obsolète
    31. Content-Encoding
    32. Content-Language
    33. Content-Length
    34. Content-Location
    35. Content-Range
    36. Politique de sécurité de contenu
    37. Content-Security-Policy-Report-Only
    38. Content-Type
    39. Cookie
    40. Critical-CH Expérimental
    41. Cross-Origin-Embedder-Policy
    42. Cross-Origin-Opener-Policy
    43. Cross-Origin-Resource-Policy
    44. Date
    45. Device-Memory
    46. Dictionary-ID Expérimental
    47. DNT Non standard Obsolète
    48. Downlink Expérimental
    49. DPR Non standard Obsolète
    50. Early-Data Expérimental
    51. ECT Expérimental
    52. ETag
    53. Expect
    54. Expect-CT Obsolète
    55. Expires
    56. Forwarded
    57. From
    58. Host
    59. If-Match
    60. If-Modified-Since
    61. If-None-Match
    62. If-Range
    63. If-Unmodified-Since
    64. Integrity-Policy
    65. Integrity-Policy-Report-Only
    66. Keep-Alive
    67. Last-Modified
    68. Link
    69. Location
    70. Max-Forwards
    71. NEL Expérimental
    72. No-Vary-Search Expérimental
    73. Observe-Browsing-Topics Expérimental Non standard
    74. Origin
    75. Origin-Agent-Cluster
    76. Feature-Policy Expérimental
    77. Pragma Obsolète
    78. Prefer
    79. Preference-Applied
    80. Priority
    81. Proxy-Authenticate
    82. Proxy-Authorization
    83. Range
    84. Referer
    85. Referrer-Policy
    86. Refresh
    87. Report-To Non standard Obsolète
    88. Reporting-Endpoints
    89. Repr-Digest
    90. Retry-After
    91. RTT Expérimental
    92. Save-Data Expérimental
    93. Sec-Browsing-Topics Expérimental Non standard
    94. Sec-CH-Prefers-Color-Scheme Expérimental
    95. Sec-CH-Prefers-Reduced-Motion Expérimental
    96. Sec-CH-Prefers-Reduced-Transparency Expérimental
    97. Sec-CH-UA Expérimental
    98. Sec-CH-UA-Arch Expérimental
    99. Sec-CH-UA-Bitness Expérimental
    100. Sec-CH-UA-Form-Factors Expérimental
    101. Sec-CH-UA-Full-Version Obsolète
    102. Sec-CH-UA-Full-Version-List Expérimental
    103. Sec-CH-UA-Mobile Expérimental
    104. Sec-CH-UA-Model Expérimental
    105. Sec-CH-UA-Platform Expérimental
    106. Sec-CH-UA-Platform-Version Expérimental
    107. Sec-CH-UA-WoW64 Expérimental
    108. Sec-Fetch-Dest
    109. Sec-Fetch-Mode
    110. Sec-Fetch-Site
    111. Sec-Fetch-User
    112. Sec-GPC Expérimental
    113. Sec-Purpose
    114. Sec-Speculation-Tags Expérimental
    115. Sec-WebSocket-Accept
    116. Sec-WebSocket-Extensions
    117. Sec-WebSocket-Key
    118. Sec-WebSocket-Protocol
    119. Sec-WebSocket-Version
    120. Serveur
    121. Server-Timing
    122. Service-Worker
    123. Service-Worker-Allowed
    124. Service-Worker-Navigation-Preload
    125. Set-Cookie
    126. Set-Login
    127. SourceMap
    128. Speculation-Rules Expérimental
    129. Strict-Transport-Security
    130. Supports-Loading-Mode Expérimental
    131. TE
    132. Timing-Allow-Origin
    133. Tk Non standard Obsolète
    134. Trailer
    135. Transfer-Encoding
    136. Upgrade
    137. Upgrade-Insecure-Requests
    138. Use-As-Dictionary Expérimental
    139. User-Agent
    140. Vary
    141. Via
    142. Viewport-Width Non standard Obsolète
    143. Want-Content-Digest
    144. Want-Repr-Digest
    145. Warning Obsolète
    146. Width Non standard Obsolète
    147. WWW-Authenticate
    148. X-Content-Type-Options
    149. X-DNS-Prefetch-Control Non standard
    150. X-Forwarded-For Non standard
    151. X-Forwarded-Host Non standard
    152. X-Forwarded-Proto Non standard
    153. X-Frame-Options
    154. X-Permitted-Cross-Domain-Policies Non standard
    155. X-Powered-By Non standard
    156. X-Robots-Tag Non standard
    157. X-XSS-Protection Non standard Obsolète
  26. Méthodes de requête HTTP
    1. CONNECT
    2. DELETE
    3. GET
    4. HEAD
    5. OPTIONS
    6. PATCH
    7. POST
    8. PUT
    9. TRACE
  27. Codes de statut de réponse HTTP
    1. 100 Continue
    2. 101 Switching Protocol
    3. 102 Processing
    4. 103 Early Hints
    5. 200 OK
    6. 201 Created
    7. 202 Accepted
    8. 203 Non-Authoritative Information
    9. 204 No Content
    10. 205 Reset Content
    11. 206 Partial Content
    12. 207 Multi-Status
    13. 208 Already Reported
    14. 226 IM Used
    15. 300 Multiple Choices
    16. 301 Moved Permanently
    17. 302 Found
    18. 303 See Other
    19. 304 Not Modified
    20. 307 Temporary Redirect
    21. 308 Permanent Redirect
    22. 400 Bad Request
    23. 401 Unauthorized
    24. 402 Payment Required
    25. 403 Forbidden
    26. 404 Not Found
    27. 405 Method Not Allowed
    28. 406 Not Acceptable
    29. 407 Proxy Authentication Required
    30. 408 Request Timeout
    31. 409 Conflict
    32. 410 Gone
    33. 411 Length Required
    34. 412 Precondition Failed
    35. 413 Payload Too Large
    36. 414 URI Too Long
    37. 415 Unsupported Media Type
    38. 416 Range Not Satisfiable
    39. 417 Expectation Failed
    40. 418 I'm a teapot (je suis une théière)
    41. 421 Misdirected Request
    42. 422 Unprocessable Entity
    43. 423 Locked
    44. 424 Failed Dependency
    45. 425 Too Early
    46. 426 Upgrade Required
    47. 428 Precondition Required
    48. 429 Too Many Requests
    49. 431 Request Header Fields Too Large
    50. 451 Unavailable For Legal Reasons
    51. 500 Internal Server Error
    52. 501 Not Implemented
    53. 502 Bad Gateway
    54. 503 Service Unavailable
    55. 504 Gateway Timeout
    56. 505 HTTP Version Not Supported
    57. 506 Variant Also Negotiates
    58. 507 Insufficient Storage
    59. 508 Loop Detected
    60. 510 Not Extended
    61. 511 Network Authentication Required
  28. Directives CSP
    1. CSP : base-uri
    2. CSP: block-all-mixed-content Obsolète
    3. CSP : child-src
    4. CSP : connect-src
    5. CSP: default-src
    6. fenced-frame-src Expérimental
    7. CSP : font-src
    8. CSP : form-action
    9. CSP: frame-ancestors
    10. CSP : frame-src
    11. CSP : img-src
    12. CSP : manifest-src
    13. CSP : media-src
    14. CSP : object-src
    15. CSP : prefetch-src Non standard Obsolète
    16. CSP: report-to
    17. CSP: report-uri Obsolète
    18. CSP: require-trusted-types-for
    19. CSP: sandbox
    20. CSP : script-src
    21. CSP : script-src-attr
    22. CSP : script-src-elem
    23. CSP : style-src
    24. CSP : style-src-attr
    25. CSP : style-src-elem
    26. CSP: trusted-types
    27. CSP: upgrade-insecure-requests
    28. CSP : worker-src
  29. Directives Permissions-Policy Expérimental
    1. Feature-Policy: accelerometer Expérimental
    2. ambient-light-sensor Expérimental
    3. attribution-reporting Expérimental
    4. autoplay Expérimental
    5. bluetooth Expérimental
    6. browsing-topics Expérimental Non standard
    7. camera Expérimental
    8. compute-pressure Expérimental
    9. cross-origin-isolated Expérimental
    10. deferred-fetch Expérimental
    11. deferred-fetch-minimal Expérimental
    12. display-capture Expérimental
    13. encrypted-media Expérimental
    14. fullscreen Expérimental
    15. gamepad Expérimental
    16. geolocation Expérimental
    17. gyroscope Expérimental
    18. hid Expérimental
    19. identity-credentials-get Expérimental
    20. idle-detection Expérimental
    21. language-detector Expérimental
    22. local-fonts Expérimental
    23. magnetometer Expérimental
    24. microphone Expérimental
    25. midi Expérimental
    26. otp-credentials Expérimental
    27. payment Expérimental
    28. picture-in-picture Expérimental
    29. publickey-credentials-create Expérimental
    30. publickey-credentials-get Expérimental
    31. screen-wake-lock Expérimental
    32. serial Expérimental
    33. speaker-selection Expérimental
    34. storage-access Expérimental
    35. summarizer Expérimental
    36. translator Expérimental
    37. usb Expérimental
    38. web-share Expérimental
    39. window-management Expérimental
    40. xr-spatial-tracking Expérimental
  30. Ressources et spécifications sur HTTP

Dans cet article

  • Statut
  • Spécifications
  • Compatibilité des navigateurs
  • Voir aussi

400 Bad Request

Le code de statut de réponse HTTP 400 Bad Request indique que le serveur ne peut pas comprendre ou traiter la requête en raison d'une erreur côté client (par exemple une requête dont la syntaxe ou le contenu est invalide).

Attention : Le client ne devrait pas répéter la requête sans modification.

Statut

400 Bad Request

Spécifications

Specification
HTTP Semantics
# status.400

Compatibilité des navigateurs

Voir aussi

  • HTTP/1.1 : Définitions des codes de statut (en anglais)

Help improve MDN

Learn how to contribute.

This page was last modified on 1 janv. 1970 by MDN contributors.

View this page on GitHub • Report a problem with this content
MDN logo

Your blueprint for a better internet.

  • MDN on Bluesky
  • MDN on Mastodon
  • MDN on X (formerly Twitter)
  • MDN on GitHub
  • MDN Blog RSS Feed

MDN

  • About
  • Blog
  • Careers
  • Advertise with us

Support

  • Product help
  • Report an issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
  • Hacks Blog
  • Website Privacy Notice
  • Cookies
  • Legal
  • Community Participation Guidelines

Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2025 by individual mozilla.org contributors. Content available under a Creative Commons license.