Skip to content

Commit

Permalink
Merge pull request #15 from welcoMattic/fix/create-error-code-test
Browse files Browse the repository at this point in the history
Fix statusCode condition for Translation response
  • Loading branch information
Nyholm authored May 11, 2017
2 parents f655341 + 3cb4320 commit 9d0b1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function create(string $projectKey, string $id, string $locale, string $t
return $response;
}

if ($response->getStatusCode() !== 201) {
if ($response->getStatusCode() >= 400) {
$this->handleErrors($response);
}

Expand Down

0 comments on commit 9d0b1fd

Please sign in to comment.