Return of the correct response code. 

Is now able to handle status 204.
Fixes #101