Fix #25 with specific error messages depending on the status code