Root_ish
Root_ish

Reputation: 39

Why do server error codes start at 1xx and not at 0xx?

Why do server error codes start at 1xx and not at 0xx. I know 1xx, 2xx etc. have their own meaning, but why doesn't it start at 0xx ?

I read most of the HTTP protocol and browsed trough the error codes without any luck.

Upvotes: 1

Views: 1296

Answers (1)

maanijou
maanijou

Reputation: 1067

According to the link that you provided:

"The first digit of the Status-Code defines the class of response. The last two digits do not have any categorization role. There are 5 values for the first digit"

There is no real reason for this and it's just a standard. As a design matter it's better to deal with fixed digits. The characters are fixed. It's clear and easy to understand. Also it says that it must be 3 digits. having 0 for the first digit complicates things easily.

Upvotes: 1

Related Questions