Numberwise

504

504 is the HTTP status code Gateway Timeout — a proxy waited for an upstream server and gave up.

2 confirmed records · 1 sourceChecked, general knowledgeHow we qualify claimsReport a correction

Where 504 fits

Where 504 fits: Mathematics, Technology, Related numbersMathematics: Harshad (Niven) number. Technology: HTTP status codes. Related numbers: 522, 502.MathematicsHarshad (Niven) numberTechnologyHTTP status codesRelated numbers522502504
504 connects to 3 worlds: mathematics, technology, related numbers.

Why 504 is special

504 is 502's slower sibling. Where 502 means the upstream answered badly, 504 means it did not answer at all within the time allowed. The distinction matters when debugging: a 502 points at a crash or a malformed response, a 504 at something merely too slow, which is usually a database or an external call.

Not just a mathematical number

504is also used in ways where ordinary arithmetic doesn't apply — each listed below with what genuinely does and doesn't follow from it.

  • Mathematical number

    A genuine quantity — its mathematical properties (prime, square, factors, and so on) are real facts about it.

    A genuine quantity that ordinary arithmetic applies to — it can be prime, even, a perfect square, added to another number meaningfully, and so on.

  • Code

    Also used as a code — HTTP status codes.

    An assigned identifier from a fixed registry or standard — its digits don't represent an amount, and arithmetic on it is meaningless (HTTP status 404 + 1 is not a 'better' status; it's a different, unrelated code).

Factors & digit properties

Divisors (24)
1, 2, 3, 4, 6, 7, 8, 9, 12, 14, 18, 21, 24, 28, 36, 42, 56, 63, 72, 84, 126, 168, 252, 504
Prime factorisation
2^3 × 3^2 × 7
Digit sum
9
Digital root
9

Representations

Decimal
504
Binary
111111000
Octal
770
Hexadecimal
1f8
Roman numeral
DIV
Scientific notation
5.040 × 10^2

Other mathematical patterns

  • Abundant number
  • Harshad (Niven) number

Related numbers & connections

Documented appearance
504 means an intermediary waited for an upstream server and gave up.

504 means an intermediary waited for an upstream server and gave up.

Connection
504 is the standard gateway timeout. Cloudflare's 522 narrows it to a connection that never opened, separating an unreachable origin from a slow one.

504 is the standard gateway timeout. Cloudflare's 522 narrows it to a connection that never opened, separating an unreachable origin from a slow one.

View 522

Numbers Around Us

  • appears inHTTP status codes
    why?

    Strength 0.50, confidence "high".

Other connections

  • contrasts with522
    why?

    Strength 0.50, confidence "high".

  • contrasts with502
    why?

    Strength 0.50, confidence "high".

How is 504 connected to another number? →

Technology & computing

  • The Peugeot 504 was engineered with long-travel suspension for poor surfaces and became a mainstay in Africa, where local assembly continued long after European production ended in 1983.

    DocumentedTechnology & computingGeography: France and West AfricaPeriod: 1968–2006
  • 504 and 502 both come from an intermediary but point at different faults: 502 means the upstream replied with something unusable, 504 means it never replied in time. When debugging, that distinction usually separates a crash from a slow database query or a hanging external call.

    DocumentedTechnology & computing

Common questions

Is 504 a prime number?

No, 504 is not prime.

What are the factors of 504?

The factors of 504 are 1, 2, 3, 4, 6, 7, 8, 9, 12, 14, 18, 21, 24, 28, 36, 42, 56, 63, 72, 84, 126, 168, 252, 504.

What is 504 in Roman numerals?

504 in Roman numerals is DIV.

About this page's data

Mathematical facts:computed directly from the number's value — nothing to source or verify externally.

Contextual records: 2 reviewer-confirmed records, sourced and reviewed before publication.

Last reviewed: 3 August 2026

504 — Meaning, Facts and Properties | Numberwise