for GetFileContent route.
by also parsing the link target, permissions, group and owner.
Also, fix json of 500 response.