adding source of request to unexpected content type exception. Fixing a bug where a non-running build (which gives back 404) tries to unmarshall the json when it's HTML.