Support HTTP 400 Bad Request
This commit is contained in:
@@ -74,6 +74,8 @@ function fetchResultsToResponseWrapper(
|
||||
|
||||
const statusCodeToErrorType = (statusCode: number): KubernetesErrorTypes => {
|
||||
switch (statusCode) {
|
||||
case 400:
|
||||
return 'BAD_REQUEST';
|
||||
case 401:
|
||||
return 'UNAUTHORIZED_ERROR';
|
||||
case 500:
|
||||
|
||||
@@ -135,6 +135,7 @@ export interface KubernetesClustersSupplier {
|
||||
}
|
||||
|
||||
export type KubernetesErrorTypes =
|
||||
| 'BAD_REQUEST'
|
||||
| 'UNAUTHORIZED_ERROR'
|
||||
| 'SYSTEM_ERROR'
|
||||
| 'UNKNOWN_ERROR';
|
||||
|
||||
Reference in New Issue
Block a user