flesh out status codes for error cases

closes #34