#399 Specific HTTP error codes

Resolves #399