Handle HTTP response codes 201 (Create) and 204 (No Content) as
succesful responses.