Close #13 - fixing http status when a error ocurs