Created response object to ensure all responses are JSON (without having to put it in multiple places).