Fixes an issue with newer Docker libraries where the response code is different. Closes #13