Skip to content

Commit

Permalink
Merge pull request #271 from vimeo/tech/vimeo-error-content
Browse files Browse the repository at this point in the history
Quota error codes and content length check
  • Loading branch information
kvenn authored Nov 13, 2017
2 parents 1345d98 + 976458d commit 59eff4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ public enum ErrorCode {
INVALID_INPUT_EMPTY_USER_URI,
@SerializedName("4003")
UPLOAD_TICKET_CREATION_ERROR,
@SerializedName("4101")
UPLOAD_QUOTA_SIZE_EXCEEDED,
@SerializedName("4102")
UPLOAD_QUOTA_COUNT_EXCEEDED,
// Unused
// These most likely won't affect the Vimeo app since we don't currently have these settings
@SerializedName("2254")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public static <ResponseType_T> VimeoError getErrorFromResponse(@Nullable final R
return null;
}
VimeoError vimeoError = null;
if (response != null && response.errorBody() != null && response.errorBody().contentLength() > 0) {
if (response != null && response.errorBody() != null) {
try {
final Converter<ResponseBody, VimeoError> errorConverter = VimeoClient.getInstance()
.getRetrofit()
Expand Down

0 comments on commit 59eff4a

Please sign in to comment.