Basic Error Handling

Basic workaround for all status codes except 0 — x-domain