When an ldp:constrainedBy link is included in an error response, the web app seems to expect that fedora is running in the root context of a servlet container:
HTTP/1.1 400 Bad Request
Date: Thu, 05 Jan 2017 20:32:57 GMT
Link: <http://example.com/static/constraints/OutOfDomainSubjectException.rdf>; rel="http://www.w3.org/ns/ldp#constrainedBy"
RDF Stream contains subject(s) (http://example.com/profile) not in the domain of this repository.
When in fact, Fedora is running in the /fcrepo context