Set text/plain as content-type for permission errors

cc @seancribbs