Fix 400 code type

This commit is contained in:
Roman Hotsiy 2015-11-23 22:56:44 +02:00
parent 16570984e0
commit 1681fb30a3

View File

@ -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';