added status code into request

resolve #20