mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-27 16:14:08 +03:00
Fix 400 code type
This commit is contained in:
parent
16570984e0
commit
1681fb30a3
|
@ -4,7 +4,7 @@ export function statusCodeType(statusCode) {
|
||||||
let res = 'success';
|
let res = 'success';
|
||||||
if (statusCode >= 300 && statusCode < 400) {
|
if (statusCode >= 300 && statusCode < 400) {
|
||||||
res = 'redirect';
|
res = 'redirect';
|
||||||
} else if (statusCode > 400) {
|
} else if (statusCode >= 400) {
|
||||||
res = 'error';
|
res = 'error';
|
||||||
} else if (statusCode < 100) {
|
} else if (statusCode < 100) {
|
||||||
res = 'info';
|
res = 'info';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user