allow both 200 and 201 status code