File tree Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ port: 9876
50
50
collections :
51
51
format :
52
52
output : true
53
+ errors :
54
+ output : true
53
55
profiles :
54
56
output : true
55
57
permalink : /:collection/:path
@@ -66,7 +68,14 @@ defaults:
66
68
path : " "
67
69
type : " profiles"
68
70
values :
69
- layout : profile_error
71
+ layout : error
72
+ is_spec_page : false
73
+ show_sidebar : false
74
+ - scope :
75
+ path : " "
76
+ type : " errors"
77
+ values :
78
+ layout : error
70
79
is_spec_page : false
71
80
show_sidebar : false
72
81
- scope :
Original file line number Diff line number Diff line change
1
+ ---
2
+ redirect_to : /format/1.1/#profile-query-parameter
3
+ ---
Original file line number Diff line number Diff line change @@ -1970,7 +1970,13 @@ query parameter **MUST** equal a URI-encoded whitespace-separated list of profil
1970
1970
1971
1971
If a server receives a request requiring the application of a profile or
1972
1972
combination of profiles that it can not apply, it ** MUST** respond with a `400
1973
- Bad Request` status code.
1973
+ Bad Request` status code. The response ** MUST** contain an [ error object] that
1974
+ identifies the ` profile ` query parameter as the ` source ` and has the following
1975
+ URI as (one of) its ` type ` s:
1976
+
1977
+ ```
1978
+ https://jsonapi.org/errors/profile-not-supported
1979
+ ```
1974
1980
1975
1981
> Note: When a client lists a profile in the ` Accept ` header, it's asking the
1976
1982
> server to compute its response as normal, but then send the response document
File renamed without changes.
You can’t perform that action at this time.
0 commit comments