Skip to content

Commit

Permalink
fix: better error code on shutdown (#4754)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodesai authored Mar 18, 2020
1 parent 19544c1 commit 17d758d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ public final class Errors {

public static final int ERROR_CODE_NOT_FOUND = toErrorCode(NOT_FOUND.getStatusCode());

public static final int ERROR_CODE_SERVER_SHUTTING_DOWN =
toErrorCode(SERVICE_UNAVAILABLE.getStatusCode());

public static final int ERROR_CODE_COMMAND_QUEUE_CATCHUP_TIMEOUT =
toErrorCode(SERVICE_UNAVAILABLE.getStatusCode()) + 1;

public static final int ERROR_CODE_SERVER_NOT_READY =
toErrorCode(SERVICE_UNAVAILABLE.getStatusCode()) + 2;

public static final int ERROR_CODE_SERVER_SHUTTING_DOWN =
toErrorCode(SERVICE_UNAVAILABLE.getStatusCode()) + 3;

public static final int ERROR_CODE_SERVER_ERROR =
toErrorCode(INTERNAL_SERVER_ERROR.getStatusCode());

Expand Down

0 comments on commit 17d758d

Please sign in to comment.