Skip to content

Commit

Permalink
Added error and response id constants. (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Jan 2, 2018
1 parent dbc455f commit d0b34b1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/com/bunq/sdk/http/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
*/
public class ApiClient {

/**
* Error constants.
*/
private static final String ERROR_COULD_NOT_DETERMINE_RESPONSE_ID_HEADER =
"The response header \"X-Bunq-Client-Response-Id\" or \"x-bunq-client-response-id\" could not be found.";

/**
* Endpoints not requiring active session for the request to succeed.
*/
Expand All @@ -79,6 +85,8 @@ public class ApiClient {
private static final String HEADER_GEOLOCATION = "X-Bunq-Geolocation";
private static final String HEADER_SIGNATURE = "X-Bunq-Client-Signature";
private static final String HEADER_AUTHENTICATION = "X-Bunq-Client-Authentication";
private static final String HEADER_RESPONSE_ID_LOWER_CASE = "x-bunq-client-response-id";
private static final String HEADER_RESPONSE_ID_UPPER_CASE = "X-Bunq-Client-Response-Id";

/**
* Field constants.
Expand Down

0 comments on commit d0b34b1

Please sign in to comment.